Stop putting yourself in shell mode by with that initial "/opt/local/bin/port ; exit;"
Just type sudo port install cairo -Al- On Wed, Oct 18, 2017 at 06:07 PM, John wrote: > Hi, > > Thanks for your response, but... > It does not work.... > > > Last login: Wed Oct 18 18:03:28 on ttys000 > John-MacBook-Pro:~ miao$ /opt/local/bin/port ; exit; > MacPorts 2.4.2 > Entering shell mode... ("help" for help, "quit" to quit) > [Users/john] > sudo /opt/local/bin/port install cairo > Error: Unrecognized action "port sudo" > [Users/john] > > > > J > > 2017-10-18 2:36 GMT-07:00 Al Varnell <alvarn...@mac.com > <mailto:alvarn...@mac.com>>: > Type $PATH in Terminal to make certain that /opt/local/bin/ is included. If > not then you need to add it or just use: > > sudo /opt/local/bin/port install cairo. > > -Al- > > On Wed, Oct 18, 2017 at 02:25 AM, John wrote: >> Hi, >> >> I tried to install Cairo graphics >> >> https://www.cairographics.org/download/ >> <https://www.cairographics.org/download/> >> >> and I need to install Macports. >> >> I tried to install Macports on my Mac OS Sierra 10.12.6, and type "sudo >> port install cairo", but it did not respond. I haven't seen any file name or >> app called Macports, but one file called "port" which is located at >> >> loca/bin/port" >> >> How should I do it? >> >> Thanks, >> >> John
smime.p7s
Description: S/MIME cryptographic signature