From: Pw Ktp on 13 Aug 2010 11:34 the mystery continues ... linuxmce(a)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(a)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(a)dcerouter:/usr/lib/ruby/gems/1.8/gems$ Pw Ktp wrote: > Brian Candler wrote: >> Pw Ktp wrote: >>> linuxmce(a)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(a)dcerouter:/usr/lib/ruby/gems/1.8/gems$ -- Posted via http://www.ruby-forum.com/.
From: Robert Klemme on 13 Aug 2010 12:48
On 13.08.2010 17:31, Pw Ktp wrote: > Brian Candler wrote: >> Pw Ktp wrote: >>> linuxmce(a)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(a)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/ |