<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>On Oct 18, 2017, at 04:25, John wrote:</div><div><br></div><blockquote type="cite"><div dir="ltr"><div>   I tried to install Cairo graphics </div><div><br></div><div><a href="https://www.cairographics.org/download/">https://www.cairographics.org/download/</a></div><div><br></div><div>   and I need to install Macports. </div></div></blockquote><div><br></div><div>Welcome! Technically you don't *need* to install MacPorts if all you want is Cairo. You could build it and it's dependencies from source. But using MacPorts is indeed an easy way to get the job done. </div><div><br></div><br><blockquote type="cite"><div dir="ltr"><div>   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</div><div><br></div><div>loca/bin/port"</div><div><br></div><div>   How should I do it? </div><div><br></div><div>   Thanks,</div><div><br></div><div>John</div><div>*******</div><div><br></div><div>Last login: Sun Oct 15 02:52:49 on console</div><div>Johns-MacBook-Pro:~ john$ /opt/local/bin/port ; exit;</div><div>MacPorts 2.4.2</div><div>Entering shell mode... ("help" for help, "quit" to quit)</div><div>[Users/john] > sudo port install cairo</div><div>Error: Unrecognized action "port sudo"</div></div>
</blockquote><br><div>You are correct; there is no GUI app called MacPorts. MacPorts is the command line program /opt/local/bin/port. </div><div><br></div><div>The installer should have set up your PATH so that you can run it by just typing "port" instead of that full path. </div><div><br></div><div>From your output above, I see you inadvertently entered MacPorts shell mode, indicated by the ">" prompt, by running "port" with no arguments. As it says, to exit that mode, type "quit" to get back to your normal shell's "$" prompt. At your normal shell "$" prompt, you can run "sudo port install cairo". </div></body></html>