Skip to content

ld: file not found: /opt/local/lib/libjpeg.62.dylib #9

@dvdplm

Description

@dvdplm

Hi,
I am having issues installing the gem on OS X (Snow Leopard). Installed libdevil from ports with
sudo port install libdevil

It pulls in a bunch of dependencies, among which libjpeg version 7.0.
Installing devil I get:
gem install devil
Building native extensions. This could take a while...
ERROR: Error installing devil:
ERROR: Failed to build gem native extension.

/Users/david/.rvm/rubies/ree-1.8.7-2009.10/bin/ruby extconf.rb
checking for main() in -lIL... yes
checking for main() in -lILU... yes
creating Makefile

make
gcc -I. -I. -I/Users/david/.rvm/rubies/ree-1.8.7-2009.10/lib/ruby/1.8/i686-darwin10.2.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -g -Os -fno-strict-aliasing -pipe -fno-common -I/opt/local/include/ -c ruby_devil_ext.c
gcc -I. -I. -I/Users/david/.rvm/rubies/ree-1.8.7-2009.10/lib/ruby/1.8/i686-darwin10.2.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -g -Os -fno-strict-aliasing -pipe -fno-common -I/opt/local/include/ -c ruby_il.c
gcc -I. -I. -I/Users/david/.rvm/rubies/ree-1.8.7-2009.10/lib/ruby/1.8/i686-darwin10.2.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -g -Os -fno-strict-aliasing -pipe -fno-common -I/opt/local/include/ -c ruby_ilu.c
cc -dynamic -bundle -undefined suppress -flat_namespace -o devil.bundle ruby_devil_ext.o ruby_il.o ruby_ilu.o -L. -L/Users/david/.rvm/rubies/ree-1.8.7-2009.10/lib -L. -L/opt/local/lib/ -lILU -lIL -ldl -lobjc
ld: file not found: /opt/local/lib/libjpeg.62.dylib
collect2: ld returned 1 exit status
make: *** [devil.bundle] Error 1

Gem files will remain installed in /Users/david/.rvm/gems/ree-1.8.7-2009.10/gems/devil-0.1.9.1 for inspection.
Results logged to /Users/david/.rvm/gems/ree-1.8.7-2009.10/gems/devil-0.1.9.1/ext/devil/gem_make.out

Any idea what might be going on? I also tried to deactivate v7 of libjpeg and use the previous version. The gem installation halts at the same point, now complaining about a missing libjpeg version 7...

Any pointers appreciated!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions