/usr/bin/ld: cannot find -lstdc++ on ubuntu 9

I recently had to get a merb site up and running on a ubunto 9.10 vps.

I haven’t worked with merb before so there was something of a learning curve, but not too much.

Anyway, the site uses image science for image manipulation.

Once I had everything installed , trying to run merb in the application root gave me the following error:

/usr/bin/ld: cannot find -lstdc++

From the trace this seemed to be related to ruby inline.

Anyway, short version is that once I installed libstdc++6-4.4-dev merb was able to start up ok.

I hope this helps someone else out there.

install a specific version of gem

Recently while working on an old 2.3.x rails app I found I was having problems with the version of rubygems installed. In the end I had to install rubygems version 1.6.2 to get a rails app version 2.3.11 to boot.

The command to install this specific version of gem is

gem update –system 1.6.2

trouble installing ruby image_science

I am using the Image Science library to do some simple thumbnailing of uploaded images in a project.

This library is very simple to use, and by all accounts is nice and lightweight and so seemed right.

However, I hit a few problems getting it installed.

One of the requirements on the site is for Ruby Inline. Now, in my haste the first time through I thought I could just gem install inline .

Hah, not so! The inline gem is not the RubyInline gem as linked to from the Image Science site.

So, one has to install the RubyInline gem to get it to work.

Of course this is clearly signposted on the Image Science¬† page, but I thought I’d note it here.

Assumption being the mother of all wasted evenings etc etc.