[MacPorts] #37143: port upgrade boost 1.52.0 image error
#37143: port upgrade boost 1.52.0 image error -------------------------+-------------------------------- Reporter: z.almeraj@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: -------------------------+-------------------------------- A follow up of problem from Ticket #35649 Hi, I never managed to solve the problem from the first ticket. I had replied through an email with a recurring problem and didn't receive a reply. I have returned to that source code since and I have a similar problem (if not exactly the same) {{{ sudo port upgrade boost ---> Scanning binaries for linking errors: 100.0% ---> Found 6 broken file(s), matching files to ports ---> Found 1 broken port(s), determining rebuild order ---> Rebuilding in order cgal @4.0.2 ---> Computing dependencies for cgal ---> Dependencies to be installed: boost ---> Activating boost @1.52.0_1+no_single+no_static+python27 Error: org.macports.activate for port boost returned: Image error: Source file /opt/local/var/macports/software/boost/mpextracth8BitXiy/opt/local/share/doc/boost/doc/html/images/accumulators/structboost_1_1accumulators_1_1feature__of_3_01tag_1_1absolute__tail__variate__means_3_01_left_r5a9741cd069ef83a2e892fe45876a0e1.png does not appear to exist (cannot lstat it). Unable to activate port boost. Error: Failed to install boost Please see the log file for port boost for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/boost/main.log Error: The following dependencies were not installed: boost Error: Unable to upgrade port: 1 Error rebuilding cgal while executing "error "Error rebuilding $portname"" (procedure "revupgrade_scanandrebuild" line 370) 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_upgrade" line 24) invoked from within "$action_proc $action $portlist [array get global_options]" (procedure "process_cmd" line 95) 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 4784) }}} A tip I received from my first posting said " Can you please do a `sudo port clean boost ; sudo port sync ; sudo port upgrade boost` to see if the problem goes away?" This did not remove the problem. Is there another way. I am not sure how to uninstall all the boost library as there are 3 versions now. and the last one is not even installed yet when I try. {{{ sudo port uninstall boost Password: ---> The following versions of boost are currently installed: ---> boost @1.44.0_0 ---> boost @1.50.0_0+no_single+no_static ---> boost @1.52.0_1+no_single+no_static+python27 Error: port uninstall failed: Registry error: Please specify the full version as recorded in the port registry. }}} -- Ticket URL: <https://trac.macports.org/ticket/37143> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37143: boost: Source file ... not appear to exist (cannot lstat it). Unable to activate port boost. --------------------------+--------------------------- Reporter: z.almeraj@… | Owner: adfernandes@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: Port: boost | --------------------------+--------------------------- Changes (by ryandesign@…): * cc: z.almeraj@… (removed) * owner: macports-tickets@… => adfernandes@… * port: => boost Comment: Are you really running MacPorts 2.0.3? If so, please use "sudo port selfupdate" to update to MacPorts 2.1.2. When you have multiple versions of a port installed, you must specify which one you want to uninstall. Try uninstalling all three versions of boost that you have installed, then trying again to install it. {{{ sudo port selfupdate sudo port clean boost sudo port uninstall boost @1.44.0_0 sudo port uninstall boost @1.50.0_0+no_single+no_static sudo port uninstall boost @1.52.0_1+no_single+no_static+python27 sudo port install boost }}} -- Ticket URL: <https://trac.macports.org/ticket/37143#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37143: boost: Source file ... not appear to exist (cannot lstat it). Unable to activate port boost. --------------------------+--------------------------- Reporter: z.almeraj@… | Owner: adfernandes@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: Port: boost | --------------------------+--------------------------- Comment (by z.almeraj@…): Yes I do have macports 2.1.2 installed. My mistake. Won't unistalling all of them mess up dependencies in other libraries? I use CGAL. What command would uninstall them all? Thank you, Zainab Replying to [comment:2 ryandesign@…]:
Are you really running MacPorts 2.0.3? If so, please use "sudo port selfupdate" to update to MacPorts 2.1.2.
When you have multiple versions of a port installed, you must specify which one you want to uninstall. Try uninstalling all three versions of boost that you have installed, then trying again to install it.
{{{ sudo port selfupdate sudo port clean boost sudo port uninstall boost @1.44.0_0 sudo port uninstall boost @1.50.0_0+no_single+no_static sudo port uninstall boost @1.52.0_1+no_single+no_static+python27 sudo port install boost }}}
-- Ticket URL: <https://trac.macports.org/ticket/37143#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37143: boost: Source file ... not appear to exist (cannot lstat it). Unable to activate port boost. --------------------------+--------------------------- Reporter: z.almeraj@… | Owner: adfernandes@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: Port: boost | --------------------------+--------------------------- Comment (by z.almeraj@…): I did remove the other two boost libraries and now the last version won't remove because of the dependency. What could I do here? {{{ $ sudo port uninstall boost @1.52.0_1+no_single+no_static+python27 ---> Unable to uninstall boost @1.52.0_1+no_single+no_static+python27, the following ports depend on it: ---> cgal @3.6.1_1 ---> cgal @4.0.2_0 ---> lib2geom @0.2.0_1 Error: org.macports.uninstall for port boost returned: Please uninstall the ports that depend on boost first. Please see the log file for port boost for details: /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_boost_1.52.0_1+no_single+no_static+python27/boost/main.log Warning: Failed to execute portfile from registry for boost @1.52.0_1+no_single+no_static+python27 ---> Unable to uninstall boost @1.52.0_1+no_single+no_static+python27, the following ports depend on it: ---> cgal @3.6.1_1 ---> cgal @4.0.2_0 ---> lib2geom @0.2.0_1 Error: port uninstall failed: Please uninstall the ports that depend on boost first. }}} Replying to [comment:3 z.almeraj@…]:
Yes I do have macports 2.1.2 installed. My mistake.
Won't unistalling all of them mess up dependencies in other libraries? I use CGAL.
What command would uninstall them all?
Thank you, Zainab
Replying to [comment:2 ryandesign@…]:
Are you really running MacPorts 2.0.3? If so, please use "sudo port selfupdate" to update to MacPorts 2.1.2.
When you have multiple versions of a port installed, you must specify which one you want to uninstall. Try uninstalling all three versions of boost that you have installed, then trying again to install it.
{{{ sudo port selfupdate sudo port clean boost sudo port uninstall boost @1.44.0_0 sudo port uninstall boost @1.50.0_0+no_single+no_static sudo port uninstall boost @1.52.0_1+no_single+no_static+python27 sudo port install boost }}}
-- Ticket URL: <https://trac.macports.org/ticket/37143#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37143: boost: Source file ... not appear to exist (cannot lstat it). Unable to activate port boost. --------------------------+--------------------------- Reporter: z.almeraj@… | Owner: adfernandes@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: invalid | Keywords: Port: boost | --------------------------+--------------------------- Changes (by adfernandes@…): * status: new => closed * resolution: => invalid Comment:
What could I do here?
I suggest you do precisely what MacPorts is asking your to do, and uninstall the ports that it says. You could also use the `-f` flag for the `port` command to force it to uninstall and ignore the dependency. By the way, the "cannot stat file" is a problem I occasionally see when there is minor filesystem corruption. I suggest you boot to your recovery partition and "repair" your disk before you proceed. -- Ticket URL: <https://trac.macports.org/ticket/37143#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37143: boost: Source file ... not appear to exist (cannot lstat it). Unable to activate port boost. --------------------------+--------------------------- Reporter: z.almeraj@… | Owner: adfernandes@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: invalid | Keywords: Port: boost | --------------------------+--------------------------- Comment (by z.almeraj@…): Thank you. Replying to [comment:5 adfernandes@…]:
What could I do here?
I suggest you do precisely what MacPorts is asking your to do, and uninstall the ports that it says. You could also use the `-f` flag for the `port` command to force it to uninstall and ignore the dependency.
By the way, the "cannot stat file" is a problem I occasionally see when there is minor filesystem corruption. I suggest you boot to your recovery partition and "repair" your disk before you proceed.
-- Ticket URL: <https://trac.macports.org/ticket/37143#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts