Discussion:
Mac port error
Simone Poli
2017-06-22 16:13:51 UTC
Permalink
dear mac port users, I’ve just installed mac port, but no commando can be
executed on it, not even the sudo self update, no action is recognised:

MacBook-Pro-di-nicola-travaglia:/ SimonePoli$ port
MacPorts 2.4.1
Entering shell mode... ("help" for help, "quit" to quit)
[/] > sudo
Error: Unrecognized action "port sudo"
[/] >


I would like to ask also if the mac port platform could be used as a
virtual computer with the Lnux shell on it.

thanks for the attention,

Best regards,

Simone
Lenore Horner
2017-06-22 17:11:03 UTC
Permalink
Post by Simone Poli
MacBook-Pro-di-nicola-travaglia:/ SimonePoli$ port
MacPorts 2.4.1
Entering shell mode... ("help" for help, "quit" to quit)
[/] > sudo
Error: Unrecognized action "port sudo"
[/] >
I would like to ask also if the mac port platform could be used as a virtual computer with the Lnux shell on it.
thanks for the attention,
Best regards,
Simone
I’ve not tried using just port and then issuing commands. I usually do things in one line
sudo port selfupdate
for instance. I think you could do
sudo port
and then issue commands from within MacPorts as you are trying to do.
Lenore
Craig Treleaven
2017-06-22 17:12:01 UTC
Permalink
Post by Simone Poli
MacBook-Pro-di-nicola-travaglia:/ SimonePoli$ port
MacPorts 2.4.1
Entering shell mode... ("help" for help, "quit" to quit)
[/] > sudo
Error: Unrecognized action "port sudo"
[/] >
Hi Simone:

Looks like you just need to enter your command on a single line in the Terminal. Try:

sudo port selfupdate

Copy, then paste all three words into the Terminal and finally press Return. You will then be prompted to enter your password. Enter your admin password; the same password that you used to install the MacPorts software. You should then see some messages printed that describe the various steps that the ‘selfupdate’ command goes through. Some of the steps may take a minute or two to finish. If all goes well, the command prompt in Terminal will be printed and will wait for you to enter the next command.

Official documentation is at:

https://guide.macports.org/#using
Post by Simone Poli
I would like to ask also if the mac port platform could be used as a virtual computer with the Lnux shell on it.
I’m not sure what you mean by this. MacPorts makes several thousand software packages ("ports”) available on Mac OS X Most of them were developed on the Linux operating system. OS X is derived from unix, as is Linux, and therefore the operating systems share a fair bit in common.

If you could tell us more specifically what you want to do, perhaps we could suggest particular ports to install.

Craig
db
2017-06-22 18:33:53 UTC
Permalink
Post by Simone Poli
I would like to ask also if the mac port platform could be used as a virtual computer with the Lnux shell on it.
If I guess what you mean — use xhyve (http://www.pagetable.com/?p=831) or qemu.
Ryan Schmidt
2017-06-22 19:00:02 UTC
Permalink
Post by Simone Poli
MacBook-Pro-di-nicola-travaglia:/ SimonePoli$ port
MacPorts 2.4.1
Entering shell mode... ("help" for help, "quit" to quit)
By typing just "port", you've entered the MacPorts shell mode. In this mode, you can type MacPorts commands without needing to type "port" in front of each command. I seldom use this mode and would guess most people don't use it much either.
Post by Simone Poli
[/] > sudo
Error: Unrecognized action "port sudo"
[/] >
"sudo" isn't a MacPorts shell command. It's a regular shell command.

To exit MacPorts shell mode, type "quit".
Nasser via macports-users
2017-11-12 12:55:37 UTC
Permalink
ust in case you still having an issue with the Mac port.
Here are the step.

$ sudo port
Password:
Password:
MacPorts 2.4.2
Entering shell mode... ("help" for help, "quit" to quit)
[Nasser/Downloads] > selfupdate --nosync
---> Updating MacPorts base sources using rsync
MacPorts base version 2.4.2 installed,
MacPorts base version 2.4.2 downloaded.
---> MacPorts base is already the latest version

I hope that helps.



--
Sent from: http://mac-os-forge.2317878.n4.nabble.com/MacPorts-Users-f115275.html
Continue reading on narkive:
Loading...