where does macports installs programs?

Christopher Jones jonesc at hep.phy.cam.ac.uk
Wed Jul 9 14:42:40 PDT 2014


Hi,

>> 
>> the only thing I saw was something about the libPyROOT module not available in root5, and I am just waiting to finish the installation to see if I have the same problem and then sending another cry for help! ;-)
> 
> PyROOT is available if you install with one of the (non default in root5) python variants. See
> 
>  > port variants root5
> 
> for details.

Note though, python support in ROOT is built against the *MacPorts* python version you select. Note the system one. So you need to run then to get access to PyROOT. Either explicitly, e.g.

MacBookPro ~ > which python2.7
/opt/local/bin/python2.7
MacBookPro ~ > python2.7
Python 2.7.8 (default, Jul  3 2014, 06:13:58) 
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
>>> 

or if you prefer, use port select to make the MacPorts python your default

> MacBookPro ~ > sudo port select python python27
> Selecting 'python27' for 'python' succeeded. 'python27' is now active.
> MacBookPro ~ > python
> Python 2.7.8 (default, Jul  3 2014, 06:13:58) 
> [GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import ROOT
> >>> 

Chris


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20140709/c5369c83/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2030 bytes
Desc: not available
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20140709/c5369c83/attachment.p7s>


More information about the macports-users mailing list