where does macports installs programs?

Fabrizio Salvatore p.fabrizio.salvatore at googlemail.com
Wed Jul 9 17:48:35 PDT 2014


thanks! 

I am having a bit of trouble now... I have two macs on which I think I have installed everything in the same way (python27, root5, root5 +python27); on one mac I can use pyROOT with no problem:

python
Python 2.7.8 (default, Jul  3 2014, 06:00:18) 
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>> import ROOT
>>

it works perfectly.

On the second laptop I have the following:

python
Python 2.7.8 (default, Jul 2 2014, 10:14: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 
Traceback (most recent call last): 
 File "<stdin>", line 1, in <module> ImportError: 
No module named ROOT >>>

Despite I have used exactly the same commands to install python
(sudo port install python27)

I see that there are some subtle differences in the output of the 'python' command, but I don't know if they matter....

In any case, I have done (as suggested in this thread)
sudo port select python python27
sudo port select root root5

on both macs and I have checked that I have 

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/libPyROOT.so -> /opt/local/libexec/root5/lib/root/libPyROOT.so
/opt/local/libexec/root5/lib/root/libPyROOT.so -> libPyROOT.5.34.so

so I really don't understand why pyROOT works on one and not on the other....

I have tried to uninstall root5 on the second mac, to see if by re-installing from scratch solves the problem, but I have the following error:

sudo port uninstall root5 
---> The following versions of root5 are currently installed: 
---> root5 @5.34.18_0+cocoa+gcc48+graphviz+gsl+minuit2+opengl+python27+roofit+soversion+ssl+tmva+xml (active) 
---> root5 @5.34.18_0+cocoa+gcc48+graphviz+gsl+minuit2+opengl+roofit+soversion+ssl+tmva+xml 
Error: port uninstall failed: Registry error: Please specify the full version as recorded in the port registry.

If anyone has any idea of what I'm doing wrong (or what could be wrong), I would be really grateful!

Many thanks!

Fab

On 10 Jul 2014, at 01:06, Ryan Schmidt wrote:

> On Jul 9, 2014, at 7:04 PM, Fabrizio Salvatore wrote:
> 
>> Many thanks! It worked!
>> 
>> Just for completeness: is there a clean way to remove a program installed with 'sudo port install'?
> 
> Of course; it's one of the key reasons people use MacPorts. Just "sudo port uninstall" it. This won't uninstall its dependencies, because they might be needed by other ports as well. But there are ways to uninstall dependencies you're not using; most simply: "sudo port uninstall leaves".
> 

-- 
+++++++++++++++++++++++++++++++++++++++++++++++
Dr Fabrizio Salvatore    |    e-mail: p.f.salvatore at sussex.ac.uk
Department of Physics and Astronomy, University of Sussex,
Brighton, Sussex, BN1 9QH, United Kingdom
Tel.:  +44 (0)1273 67 8749; Fax: +44 (0)1273 67 8068
http://epp.phys.susx.ac.uk/epp/FabrizioSalvatore
facebook.com/p.fabrizio.salvatore
https://twitter.com/fabsalva
+++++++++++++++++++++++++++++++++++++++++++++++



More information about the macports-users mailing list