libstdc++

P

Pw Ktp

when trying to install a gem i am getting a 'libstdc++' not installed
but when i check i have libstdc++6 and libstdc++5 in a ubuntu 7.10
install.

any additional commands i can use to point these libraries?


please HELP!
 
B

Brian Candler

Pw said:
when trying to install a gem i am getting a 'libstdc++' not installed
but when i check i have libstdc++6 and libstdc++5 in a ubuntu 7.10
install.

Please post the gem install command and the *exact* response you get
back from it (using copy-paste).
 
P

Pw Ktp

Brian said:
Please post the gem install command and the *exact* response you get
back from it (using copy-paste).

here

:/$ sudo gem install derailed-rhouse

Building native extensions. This could take a while...
ERROR: Error installing derailed-rhouse:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
checking for main() in -lstdc++... no
You must have libstdc++ installed.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.8
--with-stdc++lib
--without-stdc++lib


Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/id3lib-ruby-0.5.0 for inspection.
Results logged to
/usr/lib/ruby/gems/1.8/gems/id3lib-ruby-0.5.0/ext/gem_make.out
linuxmce@dcerouter:/$

thanks
 
B

Brian Candler

OK, probably missing headers as Daniel said. Try:

apt-cache search stdc++ | grep dev

On my 10.04 box I have libstdc++6-4.4-dev, but it may be different for
you.

Note that Ubuntu 7.10 went end-of-life in April 2009, so you really need
to upgrade that box. You won't be getting any critical security updates.

https://wiki.ubuntu.com/Releases

A single upgrade to 8.04 will get you support until April next year, and
from there you can upgrade directly to 10.04.

Regards,

Brian.
 
P

Pw Ktp

Brian said:
OK, probably missing headers as Daniel said. Try:

apt-cache search stdc++ | grep dev

On my 10.04 box I have libstdc++6-4.4-dev, but it may be different for
you.

Note that Ubuntu 7.10 went end-of-life in April 2009, so you really need
to upgrade that box. You won't be getting any critical security updates.

https://wiki.ubuntu.com/Releases

A single upgrade to 8.04 will get you support until April next year, and
from there you can upgrade directly to 10.04.

Regards,

Brian.

thanks i will try it - am using 7.10 as it was the last stable release
for LinuxMCE.

the command returns libstdc++5-3.3-dev
 
P

Pw Ktp

so if it is showing that if I have it installed how i can force gem
install to work ??
 
P

Pw Ktp

Brian said:
apt-get install libstdc++5-3.3-dev

Then try installing the gem again.

i tried this, and and it unpacked and installed the above.

however i still get the same error - saying i dont have libstdc++
installed.


thanks for help btw -this is really bothering me - i dont know what next
to try.
 
B

Brian Candler

Pw said:
so if it is showing that if I have it installed how i can force gem
install to work ??

apt-cache shows what packages are available.

If you have it installed, then there is some other problem. Post your
mkmf.log which will show the actual compiler error.

This will probably be somewhere under

/var/lib/gems/1.8/gems/derailed-rhouse-*/ext/
 
B

Brian Candler

Brian said:
apt-cache shows what packages are available.

That is, available to be installed.

dpkg-query -l | grep stdc

will show you if you have it installed.
 
P

Pw Ktp

Brian said:
apt-cache shows what packages are available.

If you have it installed, then there is some other problem. Post your
mkmf.log which will show the actual compiler error.

This will probably be somewhere under

/var/lib/gems/1.8/gems/derailed-rhouse-*/ext/


there is not mkmf.log for derailed-rhouse .... but there is for other
gems..

?
 
P

Pw Ktp

Brian said:
That is, available to be installed.

dpkg-query -l | grep stdc

will show you if you have it installed.


linuxmce@dcerouter:/usr/lib/ruby/gems/1.8/gems$ dpkg-query -l | grep
stdc
ii libstdc++5 1:3.3.6-15ubuntu2
The GNU Standard C++ Library v3
ii libstdc++5-3.3-dev 1:3.3.6-15ubuntu2
The GNU Standard C++ Library v3 (development
ii libstdc++6 4.2.1-5ubuntu4
The GNU Standard C++ Library v3
ii xstdcmap 1:1.0.1-0ubuntu2
X client - xstdcmap

so it is installed ? how can i inform rubygems that it is there?

thanks
 
P

Pw Ktp

sorry i meant to say its installed but am still getting the same problem
as in ruby gems claims that it is not there.

HELP!
 
B

Brian Candler

Pw said:
linuxmce@dcerouter:/usr/lib/ruby/gems/1.8/gems$ dpkg-query -l | grep
stdc
ii libstdc++5 1:3.3.6-15ubuntu2
The GNU Standard C++ Library v3
ii libstdc++5-3.3-dev 1:3.3.6-15ubuntu2
The GNU Standard C++ Library v3 (development
ii libstdc++6 4.2.1-5ubuntu4
The GNU Standard C++ Library v3
ii xstdcmap 1:1.0.1-0ubuntu2
X client - xstdcmap

If you have libstdc++6, then you should be able to install
libstdc++6-4.2-dev (unless you got that libstdc++6 package from
somewhere outside the standard Ubuntu package respositories)

If you're not getting a mkmf.log, then perhaps it's failing building a
dependency. Look for the mkmf.log with the most recent timestamp

find /var/lib/gems/1.8/gems -name mkmf.log | xargs ls -lrt
 
P

Pw Ktp

Brian said:
If you have libstdc++6, then you should be able to install
libstdc++6-4.2-dev (unless you got that libstdc++6 package from
somewhere outside the standard Ubuntu package respositories)

If you're not getting a mkmf.log, then perhaps it's failing building a
dependency. Look for the mkmf.log with the most recent timestamp

find /var/lib/gems/1.8/gems -name mkmf.log | xargs ls -lrt

anything from this >??

cat /usr/lib/ruby/gems/1.8/gems/id3lib-ruby-0.5.0/ext/mkmf.log
have_library: checking for main() in -lstdc++... -------------------- no

"cc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I.
-fno-strict-aliasing -g -O2 -fPIC conftest.c -L"." -L"/usr/lib" -L.
-rdynamic -Wl,-export-dynamic -lruby1.8-static -lstdc++ -lpthread
-ldl -lcrypt -lm -lc"
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
/* end */

"cc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I.
-fno-strict-aliasing -g -O2 -fPIC conftest.c -L"." -L"/usr/lib" -L.
-rdynamic -Wl,-export-dynamic -lruby1.8-static -lstdc++ -lpthread
-ldl -lcrypt -lm -lc"
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { main(); return 0; }
/* end */
 
P

Pw Ktp

the mystery continues ...


linuxmce@dcerouter:/usr/lib/ruby/gems/1.8/gems$ sudo apt-get install
libstdc++6-4.2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libstdc++6-4.2-dev
linuxmce@dcerouter:/usr/lib/ruby/gems/1.8/gems$ sudo apt-get install
libstdc++6-4.1-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libstdc++6-4.1-dev is not available, but is referred to by
another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libstdc++6-4.1-dev has no installation candidate
linuxmce@dcerouter:/usr/lib/ruby/gems/1.8/gems$
 
R

Robert Klemme

anything from this>??

cat /usr/lib/ruby/gems/1.8/gems/id3lib-ruby-0.5.0/ext/mkmf.log
have_library: checking for main() in -lstdc++... -------------------- no

"cc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I.
-fno-strict-aliasing -g -O2 -fPIC conftest.c -L"." -L"/usr/lib" -L.
-rdynamic -Wl,-export-dynamic -lruby1.8-static -lstdc++ -lpthread
-ldl -lcrypt -lm -lc"
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
/* end */

"cc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I.
-fno-strict-aliasing -g -O2 -fPIC conftest.c -L"." -L"/usr/lib" -L.
-rdynamic -Wl,-export-dynamic -lruby1.8-static -lstdc++ -lpthread
-ldl -lcrypt -lm -lc"
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { main(); return 0; }
/* end */

Did you try to create a symlink from libstdc++.so -> libstdc++.6.so (or
whatever your current version is named)?

Kind regards

robert
 
M

Marc Heiler

Distributions should stop splitting up every package.

It confuses new users a lot, and they have to invest their time to
decripple packages again.
 
P

Pw Ktp

Walton said:
http://linuxmce.com/index.php/download implies that 8.10 is the
latest... you are two versions behind,
Also you'll need sudo apt-get install libstdc++6 libstdc++6-dev
(shouldn't have to specify versions beyond the 6)

I meant to stay last stable non-beta. I've had many issues with 8.10
LinuxMCE, hence why I've reverted to 7.10.

I know its 2 versions behind, but it has a much better launch manager,
and setup wizard.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,146
Messages
2,570,832
Members
47,374
Latest member
anuragag27

Latest Threads

Top