Opened 8 years ago
Closed 8 years ago
#52187 closed defect (invalid)
gettext: dyld: Library not loaded: /opt/local/lib/libncurses.6.dylib
Reported by: | gkdgoutam | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: | gettext |
Description (last modified by larryv (Lawrence Velázquez))
While installing kile on OSX 10.7.5, it fails with the following error:
sudo port install kde4-kile ---> Computing dependencies for libiodbc ---> Building libiodbc Error: org.macports.build for port libiodbc returned: command execution failed Please see the log file for port libiodbc for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libiodbc/libiodbc/main.log Error: Unable to upgrade port: 1 Error: Unable to execute port: upgrade kdelibs4 failed
Then while selfupdate it again fails:
sudo port upgrade outdated ---> Computing dependencies for gtk-doc ---> Building gtk-doc Error: org.macports.build for port gtk-doc returned: command execution failed Please see the log file for port gtk-doc for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtk-doc/gtk-doc/main.log Error: Unable to upgrade port: 1 To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets
Attachments (6)
Change History (17)
Changed 8 years ago by gkdgoutam
Attachment: | libiodbc_main.log added |
---|
Changed 8 years ago by gkdgoutam
Attachment: | gtk_main.log added |
---|
comment:1 Changed 8 years ago by larryv (Lawrence Velázquez)
Description: | modified (diff) |
---|---|
Keywords: | kile libiodbc gtk removed |
Port: | libiodbc gtk-doc added |
Changed 8 years ago by gkdgoutam
comment:3 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Port: | gettext added; libiodbc gtk-doc removed |
Summary: | Kile installation failed and selfupdate failed → gettext: dyld: Library not loaded: /opt/local/lib/libncurses.6.dylib |
The log says:
dyld: Library not loaded: /opt/local/lib/libncurses.6.dylib Referenced from: /opt/local/bin/msgfmt Reason: image not found
Does /opt/local/lib/libncurses.6.dylib exist? Is the ncurses port installed, and if so what version? If it's outdated, can you upgrade it first?
comment:4 Changed 8 years ago by gkdgoutam
After installing ncurses it still fails. Actually now it shows that some files and ports are broken. How to fix that? For example when I try to install readline following appears:
sudo port install readline ---> Computing dependencies for readline ---> Cleaning readline ---> Scanning binaries for linking errors ---> Found 31 broken file(s), matching files to ports ---> Found 13 broken port(s), determining rebuild order ---> Rebuilding in order readline @6.3.003 aspell @0.60.6.1 -nls gpsd @3.14 gnuplot @5.0.1 +aquaterm+luaterm+pangocairo+wxwidgets+x11 hunspell @1.3.3 lame @3.99.5 kdelibs4 @4.14.3 libkexiv2 @4.14.3 vte @0.43.0 gcc47 @4.7.4 +universal kfilemetadata @4.14.3 nepomuk-core @4.14.3 okular @4.14.3 ---> Computing dependencies for readline ---> Cleaning readline ---> Computing dependencies for aspell ---> Cleaning aspell ---> Computing dependencies for gpsd ---> Cleaning gpsd ---> Computing dependencies for gnuplot ---> Configuring gnuplot Error: Failed to configure gnuplot, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gnuplot/gnuplot/work/gnuplot-5.0.4/config.log Error: org.macports.configure for port gnuplot returned: configure failure: command execution failed Please see the log file for port gnuplot for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gnuplot/gnuplot/main.log Error: Unable to upgrade port: 1 Error rebuilding gnuplot while executing "error "Error rebuilding $portname"" (procedure "revupgrade_scanandrebuild" line 395) invoked from within "revupgrade_scanandrebuild broken_port_counts $opts" (procedure "macports::revupgrade" line 5) invoked from within "macports::revupgrade $opts" (procedure "action_revupgrade" line 2) invoked from within "action_revupgrade $action $portlist $opts" (procedure "action_target" line 96) invoked from within "$action_proc $action $portlist [array get global_options]" (procedure "process_cmd" line 103) invoked from within "process_cmd $remaining_args" invoked from within "if { [llength $remaining_args] > 0 } { # If there are remaining arguments, process those as a command set exit_status [process_cmd $remaining..." (file "/opt/local/bin/port" line 5268)
comment:5 Changed 8 years ago by gkdgoutam
in the log file the error still comes :
:info:configure dyld: Library not loaded: /opt/local/lib/libncurses.5.dylib
so it might be due to the absence of ncurses5.
I checked and found only libncurses.6.dylib there is no libncurses.5.dylib. How to fix that?
comment:6 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Ok, so it sounds like you've successfully fixed the problem that gettext didn't work because it was looking for ncurses.6 but you only had ncurses.5. Now you have ncurses.6. But you still have something still looking for ncurses.5. That something needs to be updated. What is it? Can you attach your new main.log please?
Changed 8 years ago by gkdgoutam
Changed 8 years ago by gkdgoutam
comment:7 Changed 8 years ago by gkdgoutam
Its some weird situation. It complains when either ncurses5 or ncurses6 is active.
Here are some outputs which might be useful:
port installed ncurses The following ports are currently installed: ncurses @5.9_2 ncurses @5.9_2+universal ncurses @6.0_0 ncurses @6.0_0+universal (active)
But when I do
sudo port upgrade outdated ---> Computing dependencies for yelp-xsl ---> Configuring yelp-xsl Error: Failed to configure yelp-xsl, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_yelp-xsl/yelp-xsl/work/yelp-xsl-3.20.1/config.log Error: org.macports.configure for port yelp-xsl returned: configure failure: command execution failed Please see the log file for port yelp-xsl for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_yelp-xsl/yelp-xsl/main.log Error: Unable to upgrade port: 1
The error log (main1.log) is attached.
Now if I do
sudo port activate ncurses @5.9_2+universal
and then
sudo port upgrade outdated ---> Computing dependencies for yelp-xsl ---> Configuring yelp-xsl Error: Failed to configure yelp-xsl, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_yelp-xsl/yelp-xsl/work/yelp-xsl-3.20.1/config.log Error: org.macports.configure for port yelp-xsl returned: configure failure: command execution failed Please see the log file for port yelp-xsl for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_yelp-xsl/yelp-xsl/main.log Error: Unable to upgrade port: 1
The error log (main2.log) is attached.
comment:8 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
You shouldn't reactivate ncurses @5.9. Everything needs to be using ncurses @6.0 now. For the most part, MacPorts should handle that upgrade for you, except for the issues outlined in ProblemHotlist#ncurses6. Your main1.log shows exactly that scenario, for which the solution is to upgrade readline first. But your earlier transcript shows you running sudo port install readline
and nothing happening, meaning readline was already up to date. Have you previously been reactivating ncurses @5.9? If so, links to libncurses.5 may have crept into any ports you rebuilt thereafter, thus in some part defeating the purpose of the rebuild.
Make sure your ports are up to date with sudo port selfupdate
. Verify ncurses @6.0 is installed. Verify with port installed readline
that you have version @6.3.003_1 installed and with port outdated
that readline is not outdated. Check with otool -L /opt/local/lib/libreadline.dylib
whether libreadline links with libncurses.5 or libncurses.6. If 5, rebuild readline forcibly with sudo port -n upgrade --force readline
.
Don't forget to use WikiFormatting when writing in Trac.
comment:9 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
And remember to clean a port before trying to build it again after a failure. Both of the logs you attached were not from clean attempts.
comment:10 follow-up: 11 Changed 8 years ago by gkdgoutam
This worked actually. Thanks a ton!! I am able to install a working kile successfully. But 'sudo port upgrade outdated' still fails. This time its gedit. Other than this its fine. I am attaching the log file.
comment:11 Changed 8 years ago by larryv (Lawrence Velázquez)
Resolution: | → invalid |
---|---|
Status: | new → closed |
This looks like a different problem. Please open a new ticket and attach this log there.
Neither of the logs you attached are from clean builds, so they’re missing a lot of information. Could you please run this and attach the new logs if you see more failures?