[Gate-users] Installation of GATE

P. T. ptpphysics at gmail.com
Fri Jul 17 13:38:38 CEST 2015


Dear Gater

 I want to  to install Gate v7.1 on my VMware.
 GEANT4 (geant4.10.01.p01.tar) and CLHEP (clhep-2.2.0.4) and root have
been installed successfully on the Ubuntu 14.10.  But when I  use make
-j4 or make -j4 to install gate 7.1, the error below occurs:

---------------------------------------------------------------------------------------------------------
/home/gate7/GATE/gate_v7.1/source/arf/src/GateARFTableMgr.cc:226:1:
error: ‘dest’ was not declared in this scope
 dest.open ( theFN.c_str() );
 ^
/home/gate7/GATE/gate_v7.1/source/arf/src/GateARFTableMgr.cc: In
member function ‘void
GateARFTableMgr::LoadARFFromBinaryFile(G4String)’:
/home/gate7/GATE/gate_v7.1/source/arf/src/GateARFTableMgr.cc:301:3:
error: ‘ifstream’ was not declared in this scope
   ifstream dest;
   ^
/home/gate7/GATE/gate_v7.1/source/arf/src/GateARFTableMgr.cc:301:3:
note: suggested alternative:
In file included from /usr/include/c++/4.9/ios:38:0,
                 from /usr/include/c++/4.9/istream:38,
                 from /usr/include/c++/4.9/sstream:38,
                 from /usr/include/c++/4.9/complex:45,
                 from
/home/gate7/GATE/geant4.10.01-install/include/Geant4/G4Types.hh:67,
                 from
/home/gate7/GATE/geant4.10.01-install/include/Geant4/G4ios.hh:39,
                 from
/home/gate7/GATE/geant4.10.01-install/include/Geant4/globals.hh:49,
                 from
/home/gate7/GATE/gate_v7.1/source/arf/include/GateARFTableMgr.hh:12,
                 from
/home/gate7/GATE/gate_v7.1/source/arf/src/GateARFTableMgr.cc:13:
/usr/include/c++/4.9/iosfwd:157:34: note:   ‘std::ifstream’
   typedef basic_ifstream<char>   ifstream;
                                  ^
/home/gate7/GATE/gate_v7.1/source/arf/src/GateARFTableMgr.cc:302:3:
error: ‘dest’ was not declared in this scope
   dest.open ( theFileName.c_str(),std::ios::binary );
   ^
CMakeFiles/Gate.dir/build.make:57: recipe for target
'CMakeFiles/Gate.dir/Gate.cc.o' failed
make[2]: *** [CMakeFiles/Gate.dir/Gate.cc.o] Error 1
CMakeFiles/Gate.dir/build.make:149: recipe for target
'CMakeFiles/Gate.dir/source/arf/src/GateARFTableMgr.cc.o' failed
make[2]: *** [CMakeFiles/Gate.dir/source/arf/src/GateARFTableMgr.cc.o] Error 1
CMakeFiles/Gate.dir/build.make:1161: recipe for target
'CMakeFiles/Gate.dir/source/geometry/src/GateImageRegionalizedSubVolumeMessenger.cc.o'
failed
make[2]: *** [CMakeFiles/Gate.dir/source/geometry/src/GateImageRegionalizedSubVolumeMessenger.cc.o]
Error 1
CMakeFiles/Gate.dir/build.make:103: recipe for target
'CMakeFiles/Gate.dir/source/arf/src/GateARFDataToRoot.cc.o' failed
make[2]: *** [CMakeFiles/Gate.dir/source/arf/src/GateARFDataToRoot.cc.o] Error 1
CMakeFiles/Makefile2:622: recipe for target 'CMakeFiles/Gate.dir/all' failed
make[1]: *** [CMakeFiles/Gate.dir/all] Error 2
Makefile:126: recipe for target 'all' failed
make: *** [all] Error 2
------------------------------------------------------------------------------------------------------------------
Or:

must be enable with the -std=gnu++11 or -std=c++11


I would be very grateful if you could help me

Regards,
Pat


More information about the Gate-users mailing list