I'm having trouble install gsl-devel using MacPorts on my Mac OS 10.7.5 Machine. I try:
sudo port install gsl-devel +universal
I'm issuing this command by following the instructions to install the Haskell module hmatrix
.
However, I get an error message on command line after a bunch of configuring and compiling, and when I look into the log file, I see:
:debug:install Executing proc-post-org.macports.install-install-0
:info:install /opt/local/share/info/dir: Operation not permitted
:info:install Command failed: install-info /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gsl-devel/gsl-devel/work/destroot/opt/local/share/info/gsl-ref.info /opt/local/share/info/dir
:info:install Exit code: 1
Any idea what problem this is? Thanks in advance!
That's probably a bug in the gsl-devel port and you should file it as such. The Portfile tries to call install-info
on a file that might not even be available anymore at the point of the installation process at which it is being called.
Since MacPorts 2.2, MacPorts uses sandboxing to prevent build systems (and commands called from Portfiles) from touching files outside the locations where they should – that's probably why you see the Operation not permitted
error.
Instead of the gsl-devel
port, just install the gsl
port. It provides the same files and is also newer.