#30018 closed defect (fixed)
libtool does not install libltdl.dylib
Reported by: | christophe@… | Owned by: | boeyms@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.2 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: | libtool |
Description (last modified by jmroot (Joshua Root))
Simply doing. on 10.6.8: sudo port install imagemagick,
I get:
---> Computing dependencies for ImageMagick ---> Configuring ImageMagick Error: The file /opt/local/lib/libltdl.dylib does not exist, though it was Error: expected to have been provided by one of ImageMagick's dependencies. Try Error: rebuilding the port that should have provided that file by running Error: Error: sudo port -n upgrade --force <portname> Error: Error: Target org.macports.configure returned: missing required file Log for ImageMagick is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_ImageMagick/main.log Error: Status 1 encountered during processing.
Attached is the corresponding log file.
Attachments (1)
Change History (10)
Changed 13 years ago by christophe@…
comment:1 Changed 13 years ago by jmroot (Joshua Root)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to ryandesign@… |
Port: | ImageMagick added |
comment:2 follow-up: 3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Then please do what the error message says, and run "sudo port -n upgrade --force libtool
"
comment:3 follow-up: 5 Changed 13 years ago by christophe@…
Replying to ryandesign@…:
Then please do what the error message says, and run "
sudo port -n upgrade --force libtool
"
Did that (sudo port -n upgrade --force libtool), but it still does not work. Btw, the error says libltdl, not libtool.
Following the exact error message, I do: sudo port -n upgrade --force imagemagick
And then I get (not surprisingly): Error: imagemagick is not installed
The weird thing is that when I look under /opt/local/lib, I have: libltdl.a and libltdl.la, but no libltdl.dylib.
comment:4 Changed 13 years ago by christophe@…
A bit more info.
Just to try to see what is going on, I removed the two .a files (/opt/local/lib/libltdl.a and /opt/local/lib/libltdl.la).
Then I ran your proposed "sudo port -n upgrade --force libtool".
This re-installed the two .a files, but did not bring in the corresponding libltdl.dylib.
comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Owner: | changed from ryandesign@… to boeyms@… |
Port: | libtool added; ImageMagick removed |
Summary: | ImageMagick and missing /opt/local/lib/libltdl.dylib → libtool does not install libltdl.dylib |
Replying to christophe@…:
Did that (sudo port -n upgrade --force libtool), but it still does not work. Btw, the error says libltdl, not libtool.
Yes. libltdl.dylib is the LibTool Dynamic Loader, which was supposed to have been provided by the libtool port, but on your system it was not. I need to see the main.log file from the libtool build in order to determine why that happened. This same problem has previously been reported in #25417 and #23684. The presence of the file /usr/bin/gfortran may be implicated. Do you have this file? If so remove it and try rebuilding libtool again. I have modified the libtool port in r80123 to prevent its installation if libltdl.dylib did not get built.
comment:6 Changed 13 years ago by christophe@…
This worked! I indeed had the file /usr/bin/gfortran (which was a link to /usr/bin/gfortran-4.2). Moved it out of the way, and now libtool brings in the libltdl.dylib file (which itself is a link to libltdl.7.dylib). And Imagemagick compiles and install fine. Thanks for your help. Not sure where I got this gfortran from (another macports install, likely).
comment:7 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
MacPorts does not install things in /usr.
If you need gfortran, install a MacPorts gcc port (such as gcc46).
Please remember to preview and use WikiFormatting, fill in the Port field, and cc the maintainer.