"unrecognized action" error when trying to use an installed port

Panagiotis Atmatzidis atma at convalesco.org
Sat Oct 31 07:48:07 PDT 2009


Greetings,

On 31 Οκτ 2009, at 4:37 μ.μ., Carrie S. Miller wrote:

> I have just installed macports (1.8.1) for snow leopard. I also  
> installed xcode, so all of these programs are up to date. When I try  
> to install a port (e.g. xmgr), the port installs fine and shows up  
> as active when I use "port installed." However, when I try to run it  
> using either "port xmgr" or "sudo port xmgr" it returns the error:
>
> unrecognized action "xmgr"
>
> This error occurs when I try to run any port that I've installed.  
> Any help would be much appreciated.
>
> Thanks
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Yes of course it does, becuase port only handles installation not  
execution. So for port the the options are are:

atma at devo:~/ > sudo port help
Password:
port
         [-bcdfknopqRstuvy] [-D portdir] [-F cmdfile] action  
[privopts] [actionflags]
         [[portname|pseudo-portname|port-url] [@version] [+- 
variant]... [option=value]...]...

[...]

When you type for instance "sudo port install irssi" it does install  
irssi. Then you run irssi by running the proram itself. The port  
command has nothing to do with this.

In order to run the programs installed by macports you need to add the  
path to your .profile. For more info on that take a look here http://trac.macports.org/wiki/InstallingMacPorts#a3.Settheshellenvironment

In your case you should run just "xmgr" or the binary names of the  
executables of the package, just like any other command line program.

regards


Panagiotis (atmosx) Atmatzidis

email:	atma at convalesco.org
URL:	http://www.convalesco.org
GnuPG key id: 0xFC4E8BB4
--
The wise man said: "Never argue with an idiot. They bring you down to  
their level and beat you with experience."



More information about the macports-users mailing list