LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing sumo-0.9.8 problem in fedora 15 (https://www.linuxquestions.org/questions/linux-newbie-8/installing-sumo-0-9-8-problem-in-fedora-15-a-4175417769/)

nadia_kh 07-20-2012 06:41 AM

installing sumo-0.9.8 problem in fedora 15
 
hi
i want to install sumo-0.9.8 on fedora 15. i already installed xerces-c.27 FOX-1.4.35 gdal-1.3.2 and proj-4.5.0. i use below command and see this results
Quote:

[nadia@NADIA sumo-0.9.8]$ export CC=gcc34 CXX=g++34
./configure --with-xerces-libraries=/usr/lib/xerces-c-2.7.0/ --with-xerces-includes=/usr/include/xercesc-2.7.0/ --with-proj-libraries=/usr/lib/ --with-proj-includes=/usr/include/ --with-gdal-libraries=/usr/lib/ --with-gdal-includes=/usr/include/ --enable-traci

Enabled: InternalLanes TRACI PROJ GDAL
Disabled: Debug GeometryChecks MemoryChecks SpeedChecks DoublePrecision ONLINE_CALIBRATION GUI
and when i use make command, these results is shown
Quote:

[nadia@NADIA sumo-0.9.8]$ make
/usr/lib//libgeos.so : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long double>(long double)@GLIBCXX_3.4.9'
/usr/lib//libgeos.so : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<void const*>(void const*)@GLIBCXX_3.4.9'
/usr/lib//libgeos.so : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<double>(double)@GLIBCXX_3.4.9'
/usr/lib//libgeos.so : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)@GLIBCXX_3.4.9'
/usr/lib//libgeos.so : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<unsigned long>(unsigned long)@GLIBCXX_3.4.9'
/usr/lib//libgeos.so: undefined reference to `std::_List_node_base::_M_unhook()@GLIBCXX_3.4.14'
/usr/lib//libgeos.so : undefined reference to `std::_List_node_base::_M_hook(std::_List_node_base*)@GLIBCXX_3.4.14'
/usr/lib//libgeos.so : undefined reference to `std::ctype<char>::_M_widen_init() const@GLIBCXX_3.4.11'
collect2: ld returned 1 exit status
make[3]: *** [sumo-netconvert] Error 1
make[3]: Leaving directory `/home/nadia/work/sumo-0.9.8/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/nadia/work/sumo-0.9.8/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/nadia/work/sumo-0.9.8/src'
make: *** [all-recursive] Error 1

what's the matter?
please help me to solve this problem

thanks

nadia_kh 07-20-2012 01:37 PM

hi again
i installed fox proj and gdal again and use the new command
Quote:

./configure --with-xerces-libraries=/usr/lib/xerces-c-2.7.0/ --with-xerces-includes=/usr/include/xercesc-2.7.0/ --with-fox=$HOME --with-proj-gdal=$HOME --enable-traci --prefix=$HOME
the configuration is good but after make command an error is shown

Quote:

make

/usr/lib/libgeos.so : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long double>(long double)@GLIBCXX_3.4.9'
/usr/lib/libgeos.so : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<void const*>(void const*)@GLIBCXX_3.4.9'
/usr/lib/libgeos.so : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<double>(double)@GLIBCXX_3.4.9'
/usr/lib/libgeos.so : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)@GLIBCXX_3.4.9'
/usr/lib/libgeos.so : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<unsigned long>(unsigned long)@GLIBCXX_3.4.9'
/usr/lib/libgeos.so : undefined reference to `std::_List_node_base::_M_unhook()@GLIBCXX_3.4.14'
/usr/lib/libgeos.so : undefined reference to `std::_List_node_base::_M_hook(std::_List_node_base*)@GLIBCXX_3.4.14'
/usr/lib/libgeos.so : undefined reference to `std::ctype<char>::_M_widen_init() const@GLIBCXX_3.4.11'
collect2: ld returned 1 exit status
make[3]: *** [sumo-netconvert] Error 1
make[3]: Leaving directory `/home/nadia/work/sumo-0.9.8/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/nadia/work/sumo-0.9.8/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/nadia/work/sumo-0.9.8/src'
make: *** [all-recursive] Error 1

if any one has an idea please tell to me

thanks

John VV 07-20-2012 05:10 PM

you are aware that fedora 15 is a Dead version ? right?

please see the #6 post in your thread
http://www.linuxquestions.org/questi...5/#post4732988

it is unsupported
it hit it's End of Life last month, please stay current and install fedora 17 FIRST
also gdal,proj-4 are in the fedora repos

also HOW did you install the legacy gcc34 ? ( aka "compat-gcc34")
from the fedora repo using yum or some other way

also this
Quote:

export CC=gcc34 CXX=g++34
that export normally will mostly work most of the time - it dose not ALWAYS work
"configure" can grab the WRONG files



fedora uses "alternatives" so that many versions od Gcc, python,java,... can be installed at the same time

however i ( personal choice) have never liked setting alternatives in the terminal
i use a set up shell script

but until we know HOW you installed gcc 34 AND THE required software for 3.4 , we can not help much.

because the above errors look like you messed up the install of the OLD ( VERY OLD) gcc 3.4


is this the sumo you are installing ????
http://sourceforge.net/projects/sumo/
the 0.9.8 OLD version
http://sourceforge.net/projects/sumo...rsion%200.9.8/
you ARE aware that that is from 2008 and is VERY old
there IS a CURRENT VERSION
http://sourceforge.net/projects/sumo...sion%200.15.0/
from this year.

and from this ( marked solved sumo thread)
http://www.linuxquestions.org/questi...a-15-a-947929/

and yes i do use gdal,proj-4, and mmps,ISIS3 and "stereo-pipline" and GRASS.


but if you MUST use a OLD and unsupported version of sumo from 2008 AND NOT the CURRENT version

fedora IS NOT the operating system to be using

you NEED a os from 2008
something that IS still supported like CentOS5.8

nadia_kh 07-21-2012 01:52 AM

hi again
i want to install TraNSv1.2. It needs sumo-0.9.8 and ns-2.35. i installed sumo-0.9.8 about 30 days ago on fedora 15. but now i can't install sumo-0.9.8!!!!!!!!!!!!!!!
i installed fox proj and gdal again and use the new command

Quote:

[nadia@NADIA sumo-0.9.8]$ export CC=gcc34 CXX=g++34
[nadia@NADIA sumo-0.9.8]$ ./configure --with-xerces-libraries=/usr/lib/xerces-c-2.7.0/ --with-xerces-includes=/usr/include/xercesc-2.7.0/ --with-proj-libraries=/usr/lib/ --with-proj-includes=/usr/include/ --with-gdal-libraries=/usr/lib/ --with-gdal-includes=/usr/include/ --with-fox=$HOME --enable-traci --prefix=$HOME

Enabled: InternalLanes TRACI PROJ GDAL GUI
Disabled: Debug GeometryChecks MemoryChecks SpeedChecks DoublePrecision ONLINE_CALIBRATION
the configuration is good but after make command an error is shown

Quote:

[nadia@NADIA sumo-0.9.8]$ make

/usr/lib//libgeos.so : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long double>(long double)@GLIBCXX_3.4.9'
/usr/lib//libgeos.so : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<void const*>(void const*)@GLIBCXX_3.4.9'
/usr/lib//libgeos.so : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<double>(double)@GLIBCXX_3.4.9'
/usr/lib//libgeos.so : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)@GLIBCXX_3.4.9'
/usr/lib//libgeos.so : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<unsigned long>(unsigned long)@GLIBCXX_3.4.9'
/usr/lib//libgeos.so : undefined reference to `std::_List_node_base::_M_unhook()@GLIBCXX_3.4.14'
/usr/lib//libgeos.so : undefined reference to `std::_List_node_base::_M_hook(std::_List_node_base*)@GLIBCXX_3.4.14'
/usr/lib//libgeos.so : undefined reference to `std::ctype<char>::_M_widen_init() const@GLIBCXX_3.4.11'
collect2: ld returned 1 exit status
make[3]: *** [sumo-netconvert] Error 1
make[3]: Leaving directory `/home/nadia/work/sumo-0.9.8/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/nadia/work/sumo-0.9.8/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/nadia/work/sumo-0.9.8/src'
make: *** [all-recursive] Error 1

please help me to solve this problem

thanks

knudfl 07-21-2012 11:46 AM

#1, ( #2 ).
Quote:

Enabled: InternalLanes TRACI PROJ GDAL
Quote:

/usr/lib//libgeos.so : undefined reference to `std::basic_ostream<char,
std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >
::_M_insert<long double>(long double)@GLIBCXX_3.4.9'
Ref. your other threads about the same subject
http://www.linuxquestions.org/questi...a-15-a-947929/
http://www.linuxquestions.org/questi...r-sumo-948166/

Looks like the option --enable-traci chokes in the combination "old gdal / new geos(3)".
A 'gdal-1.3.2' compiled with geos 2 will do :

32bits geos-2.2.3-3.el5.i386.rpm, geos-devel-2.2.3-3.el5.i386.rpm
ftp://ftp.sunet.se/pub/Linux/distrib...3.el5.i386.rpm
ftp://ftp.sunet.se/pub/Linux/distrib...3.el5.i386.rpm
# yum remove geos
# yum localinstall --nogpgcheck geos-2.2.3-3.el5.i386.rpm
# yum localinstall --nogpgcheck geos-devel-2.2.3-3.el5.i386.rpm
# yum install netcdf-devel && exit

export CC=gcc34 CXX=g++34 && cd gdal-1.3.2/ &&
./configure --with-libz --with-png --with-libtiff=internal --with-geotiff=internal --with-gif --with-jpeg --with-ogr --with-sqlite --prefix=<??> --libdir=<destination> --without-hdf5


P.S. : So far no luck with option GUI ( sumo-0.9.8/src/guisim )

..

nadia_kh 07-21-2012 03:33 PM

hi knudfl

the error is shown again and again. i searched internet. I think it is because of my gcc version. it is 4.6.3-2.
do you think it works when i change the gcc version?

thanks

John VV 07-21-2012 06:31 PM

Quote:

geos-2.2.3-3.el5.i386.rpm
i would be very VERY VERY careful of installing a RHEL 5 ( el5) rpm on fedora 15 (fc15)

some might work but you are just as likely to royally mess up ( the End of Life) fedora 15
so use extreme care when installing a rpm for a DIFFERENT operating system .

knudfl 07-22-2012 03:57 AM

# 6
Quote:

do you think it works when I change the gcc version ?
You can have as many versions of "gcc-c++" as you want,
installed at the same time.
Use the export command to configure sumo with g++34.

The same for 'old gdal' : Use gcc34 / g++34.)
And : use a gdal that is compiled with the right geos.

( geos / geos-devel packages : No dependencies → → easy to install.)

.

nadia_kh 07-22-2012 05:05 AM

hi knudfl
i can install gdal-1.3.2. but the error is not disappeared.!!!

in http://www.linuxquestions.org/questi...a-15-a-947929/
you helped me to install sumo. my system is damaged 1 week ago. i installed fedora 15 and ns-2.35 again and follow your command but i cannot install sumo now :(

do you have any idea to install sumo with --enable-traci

thanks
best regards

knudfl 07-22-2012 05:41 AM

# 9

Quote:

do you have any idea to install sumo with --enable-traci
Yes, I have done that yesterday. See posts #5, #8.
( The 64bits Fedora 15 was used.)

.


All times are GMT -5. The time now is 08:39 AM.