On Thu, Jan 29, 2004 at 01:54:53AM +0900, Safran von Twesla wrote: > Hi, > > I'm posting again and again... after a friend of mine doesn't manage > to get ruby work with gd on his windows system, I failed making ruby > run with gd under linux. > > I did it as written in the INSTALL.en file. > I first ran : > ruby extconf.rb --with-gd-include=/usr/local/lib/ > --with-gd-lib=/usr/local/lib > > That's the place where gd is installed. > > Then I ran make & make install. There were no errors reported... > > > Here the error when trying to run the example.rb: > > /usr/local/lib/ruby/site_ruby/1.8/i686-linux/GD.so: libgd.so.2: cannot > open shared object file: No such file or directory - > /usr/local/lib/ruby/site_ruby/1.8/i686-linux/GD.so (LoadError) > from ./sample/example.rb:3 > > > What's wrong? A lacking -Wl,-R /usr/local/lib in the compilation (aka ``rpath''). You shouldn't need touching your system's configuration for the installation of a packet. Contact the package's author and complain about the lack of using the right linker incantations :-) -Martin