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!
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!
Pw Ktp wrote:
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).
On Fri, Aug 13, 2010 at 09:29:57PM +0900, Pw Ktp wrote:
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.
I don’t use Linux a great deal, but I seem to recall that Debian-based
systems split the headers out into a different package. This could be
the
case here - try looking for a package called something like
libstdc++5-dev
and install it.
Dan
Brian C. wrote:
Pw Ktp wrote:
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).
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
Brian C. wrote:
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.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
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.
Pw Ktp wrote:
the command returns libstdc++5-3.3-dev
apt-get install libstdc++5-3.3-dev
Then try installing the gem again.
so if it is showing that if I have it installed how i can force gem
install to work ??
Pw Ktp wrote:
Brian C. wrote:
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.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
Brian C. wrote:
Pw Ktp wrote:
the command returns libstdc++5-3.3-dev
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.
Pw Ktp wrote:
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/
Brian C. wrote:
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.
Brian C. wrote:
Pw Ktp wrote:
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/
there is not mkmf.log for derailed-rhouse … but there is for other
gems…
?
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!
Pw Ktp wrote:
Brian C. wrote:
Brian C. wrote:
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.
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 - xstdcmapso it is installed ? how can i inform rubygems that it is there?
thanks
Brian C. wrote:
Brian C. wrote:
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.
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
Pw Ktp wrote:
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
Brian C. wrote:
Pw Ktp wrote:
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 - xstdcmapIf 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 timestampfind /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 */
linuxmce@dcerouter:/usr/lib/ruby/gems/1.8/gems$
On 13.08.2010 17:31, Pw Ktp wrote:
ii xstdcmap 1:1.0.1-0ubuntu2
collect2: ld returned 1 exit status
-ldl -lcrypt -lm -lc"linuxmce@dcerouter:/usr/lib/ruby/gems/1.8/gems$
Did you try to create a symlink from libstdc++.so -> libstdc++.6.so (or
whatever your current version is named)?
Kind regards
robert
Distributions should stop splitting up every package.
It confuses new users a lot, and they have to invest their time to
decripple packages again.
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$
Pw Ktp wrote:
Brian C. wrote:
Pw Ktp wrote:
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 - xstdcmapIf 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 timestampfind /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 */
linuxmce@dcerouter:/usr/lib/ruby/gems/1.8/gems$
Walton H. wrote:
On 8/13/2010 8:19 AM, Pw Ktp wrote:
to upgrade that box. You won’t be getting any critical security updates.
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
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs