From: Rasputin Date: 2004-01-30T01:17:21+09:00 Subject: Re: Ruby & gd Martin Weber wrote: >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 :-) > > > Agreed (my OS, NetBSD , doesnt do system library hacks like that. -Wl,-R /shlibdir is pretty much compulsory). But since most Linux source builds aim themselves at /usr/local, this'll save you hours of hassle .