From: Robert Klemme Date: 2010-08-14T01:50:17+09:00 Subject: Re: libstdc++ On 13.08.2010 17:31, Pw Ktp wrote: > Brian Candler 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 - 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 > > 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$ Did you try to create a symlink from libstdc++.so -> libstdc++.6.so (or whatever your current version is named)? Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/