Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#37143 closed defect (invalid)

boost: Source file ... not appear to exist (cannot lstat it). Unable to activate port boost.

Reported by: z.almeraj@… Owned by: adfernandes (Andrew Fernandes)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: boost

Description

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.

Change History (6)

comment:1 Changed 12 years ago by z.almeraj@…

Cc: z.almeraj@… added

Cc Me!

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: z.almeraj@… removed
Owner: changed from macports-tickets@… to adfernandes@…
Port: boost added
Summary: port upgrade boost 1.52.0 image errorboost: Source file ... not appear to exist (cannot lstat it). Unable to activate port boost.

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

comment:3 in reply to:  2 ; Changed 12 years ago 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 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

comment:4 in reply to:  3 ; Changed 12 years ago 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 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 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

comment:5 in reply to:  4 ; Changed 12 years ago by adfernandes (Andrew Fernandes)

Resolution: invalid
Status: newclosed

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.

comment:6 in reply to:  5 Changed 12 years ago by z.almeraj@…

Thank you.

Replying to 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.

Note: See TracTickets for help on using tickets.