Opened 15 years ago
Closed 15 years ago
#20076 closed defect (duplicate)
boost @1.39.0_2 +python25 - Activation fails
Reported by: | hugo.strand@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.1 |
Keywords: | boost python2.5 python activation | Cc: | |
Port: | boost |
Description
Port activation fails when trying to install Boost (1.39) with Python2.5 support.
Running:
sudo port -d install boost +debug +doc +graphml +icu +openmpi +python25
The building and installation works out fine but the activation stage does not complete. All the include and library files are successfully "activated" but when port
gets to the "boost python module" I get the error message:
... DEBUG: Adding file to file_map: /opt/local/Library/Frameworks /Python.framework/Versions/2.5/lib/python2.5/site-packages/boost/__init__.py for: boost DEBUG: Not a directory while executing "filemap set file_map $file $port" (procedure "receipt_flat::register_file" line 11) invoked from within "${macports::registry.format}::register_file $file $port" (procedure "registry::register_file" line 3) invoked from within "registry::register_file $file $name" (procedure "portimage::activate" line 65) invoked from within "portimage::activate $portname [composite_version $portversion [array get variations]] [array get options]" Error: port activate failed: Not a directory
But when looking at the boost installation, ports
report it as activated.
bash-3.2$ port installed boost The following ports are currently installed: boost @1.39.0_2+debug+doc+graphml+icu+openmpi+python25 (active)
What am I doing wrong here?
Is there a problem with my Python installation or is this caused by the boost Portfile
?
Further:
Trying to runt port deactivate
, uninstall
and clean --all
on boost
does not remove the files added by the port
activation. Thus when trying to install boost a second time ports activation stage complain on already existing files not belonging to any port.
---> Activating boost Error: port activate failed: Image error: /opt/local/include/boost/accumulators/accumulators.hpp already exists and does not belong to a registered port. Unable to activate port boost.
Removing the old files manually i.e.,
rm -r /opt/local/include/boost/ rm -r /opt/loca/lib/libboost_* rm -r /opt/local/share/doc/boost-1_39/
(or using port activate -f boost
that renames all old files to *.mp_*
.)
This makes it possible to run the activation but as expected it also fails at the same point as above.
Change History (2)
comment:1 Changed 15 years ago by hugo.strand@…
comment:2 Changed 15 years ago by dbevans (David B. Evans)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Duplicate of #20077.
Please remove this ticket. I's a duplicate of https://trac.macports.org/ticket/20077
I somehow managed to post two identical tickets, sorry.