Re: Macports installation problem

2017-10-19 Thread Ryan Schmidt

On Oct 19, 2017, at 00:46, John wrote:

> Thanks for pointing out that I should open the "Terminal". I tried it; could 
> you check if my Cairo is installed successfully? Should I do something on 
> Xbox? Thanks!!
> 
> 
> Last login: Wed Oct 18 21:01:15 on ttys001
> John-MacBook-Pro:~ john$ sudo port install cairo
> Password:
> Sorry, try again.
> Password:
> Warning: The Xcode Command Line Tools don't appear to be installed; most 
> ports will likely fail to build.
> Warning: Install them by running `xcode-select --install'.

> --->  Fetching archive for cairo
> --->  Attempting to fetch cairo-1.14.10_0+quartz+x11.darwin_16.x86_64.tbz2 
> from http://kmq.jp.packages.macports.org/cairo
> --->  Attempting to fetch 
> cairo-1.14.10_0+quartz+x11.darwin_16.x86_64.tbz2.rmd160 from 
> http://kmq.jp.packages.macports.org/cairo
> --->  Installing cairo @1.14.10_0+quartz+x11
> --->  Activating cairo @1.14.10_0+quartz+x11

Yes, the above shows Cairo was successfully installed.

It just so happened that Cairo and all of its dependencies had already been 
built by our build servers, so you were able to receive pre-built binaries from 
us. That might not be the case in the future if you upgrade Cairo or try to 
install other ports, in which case MacPorts will try to build them on your 
computer. That might fail if you don't have both Xcode and the command line 
tools installed.


> John-MacBook-Pro:~ john$ xcode-select --install
> xcode-select: note: install requested for command line developer tools

Assuming you followed the prompts shown after you ran "xcode-select --install" 
and installed the command line tools, and that you also have Xcode installed 
for example from the App Store, you're all set even if MacPorts needs to try to 
compile on your system.






Re: Macports installation problem

2017-10-19 Thread Arno Hautala
On Thu, Oct 19, 2017 at 1:46 AM, John  wrote:
> Thanks for pointing out that I should open the "Terminal". I tried it; could
> you check if my Cairo is installed successfully? Should I do something on
> Xbox? Thanks!!
>
...
> Warning: The Xcode Command Line Tools don't appear to be installed; most
> ports will likely fail to build.
> Warning: Install them by running `xcode-select --install'.

I'm assuming "Xbox" was due to auto-correct :-)

port is informing you that the build tools aren't installed correctly
and then giving you the instructions for installing those tools.

In this case, everything you installed was available as a pre-compiled
binary so you didn't need to compile anything yourself and didn't need
to use those tools. If you install other ports in the future those
builds might fail if you don't install the command line tools or the
rest of Xcode.

If you only need cairo, you are indeed all set for now.


Re: Macports installation problem

2017-10-18 Thread Chris Jones

Yes, it is installed. 

No idea at all what this has to do with an Xbox though .

> On 19 Oct 2017, at 6:46 am, John  wrote:
> 
> Thanks for pointing out that I should open the "Terminal". I tried it; could 
> you check if my Cairo is installed successfully? Should I do something on 
> Xbox? Thanks!!
> 
> 
> Last login: Wed Oct 18 21:01:15 on ttys001
> John-MacBook-Pro:~ john$ sudo port install cairo
> Password:
> Sorry, try again.
> Password:
> Warning: The Xcode Command Line Tools don't appear to be installed; most 
> ports will likely fail to build.
> Warning: Install them by running `xcode-select --install'.
> --->  Computing dependencies for cairo
> The following dependencies will be installed: 
>  bzip2
>  db48
>  expat
>  fontconfig
>  freetype
>  gettext
>  glib2
>  libedit
>  libffi
>  libiconv
>  libpixman
>  libpng
>  libxml2
>  ncurses
>  openssl
>  pcre
>  python27
>  python2_select
>  python_select
>  sqlite3
>  xorg-kbproto
>  xorg-libX11
>  xorg-libXau
>  xorg-libXdmcp
>  xorg-libXext
>  xorg-libpthread-stubs
>  xorg-libxcb
>  xorg-renderproto
>  xorg-xcb-proto
>  xorg-xcb-util
>  xorg-xextproto
>  xorg-xproto
>  xrender
>  xz
>  zlib
> Continue? [Y/n]: Y
> --->  Fetching archive for expat
> --->  Attempting to fetch expat-2.2.4_0.darwin_16.x86_64.tbz2 from 
> http://kmq.jp.packages.macports.org/expat
> --->  Attempting to fetch expat-2.2.4_0.darwin_16.x86_64.tbz2.rmd160 from 
> http://kmq.jp.packages.macports.org/expat
> --->  Installing expat @2.2.4_0
> --->  Activating expat @2.2.4_0
> --->  Cleaning expat
> --->  Fetching archive for bzip2
> --->  Attempting to fetch bzip2-1.0.6_0.darwin_16.x86_64.tbz2 from 
> http://kmq.jp.packages.macports.org/bzip2
> --->  Attempting to fetch bzip2-1.0.6_0.darwin_16.x86_64.tbz2.rmd160 from 
> http://kmq.jp.packages.macports.org/bzip2
> --->  Installing bzip2 @1.0.6_0
> --->  Activating bzip2 @1.0.6_0
> --->  Cleaning bzip2
> --->  Fetching archive for zlib
> --->  Attempting to fetch zlib-1.2.11_0.darwin_16.x86_64.tbz2 from 
> http://kmq.jp.packages.macports.org/zlib
> --->  Attempting to fetch zlib-1.2.11_0.darwin_16.x86_64.tbz2.rmd160 from 
> http://kmq.jp.packages.macports.org/zlib
> --->  Installing zlib @1.2.11_0
> --->  Activating zlib @1.2.11_0
> --->  Cleaning zlib
> --->  Fetching archive for libpng
> --->  Attempting to fetch libpng-1.6.32_0.darwin_16.x86_64.tbz2 from 
> http://kmq.jp.packages.macports.org/libpng
> --->  Attempting to fetch libpng-1.6.32_0.darwin_16.x86_64.tbz2.rmd160 from 
> http://kmq.jp.packages.macports.org/libpng
> --->  Installing libpng @1.6.32_0
> --->  Activating libpng @1.6.32_0
> --->  Cleaning libpng
> --->  Fetching archive for freetype
> --->  Attempting to fetch freetype-2.8_0.darwin_16.x86_64.tbz2 from 
> http://kmq.jp.packages.macports.org/freetype
> --->  Attempting to fetch freetype-2.8_0.darwin_16.x86_64.tbz2.rmd160 from 
> http://kmq.jp.packages.macports.org/freetype
> --->  Installing freetype @2.8_0
> --->  Activating freetype @2.8_0
> --->  Cleaning freetype
> --->  Fetching archive for libiconv
> --->  Attempting to fetch libiconv-1.15_0.darwin_16.x86_64.tbz2 from 
> http://kmq.jp.packages.macports.org/libiconv
> --->  Attempting to fetch libiconv-1.15_0.darwin_16.x86_64.tbz2.rmd160 from 
> http://kmq.jp.packages.macports.org/libiconv
> --->  Installing libiconv @1.15_0
> --->  Activating libiconv @1.15_0
> --->  Cleaning libiconv
> --->  Fetching archive for fontconfig
> --->  Attempting to fetch fontconfig-2.12.6_1.darwin_16.x86_64.tbz2 from 
> http://kmq.jp.packages.macports.org/fontconfig
> --->  Attempting to fetch fontconfig-2.12.6_1.darwin_16.x86_64.tbz2.rmd160 
> from http://kmq.jp.packages.macports.org/fontconfig
> --->  Installing fontconfig @2.12.6_1
> --->  Activating fontconfig @2.12.6_1
> --->  Cleaning fontconfig
> --->  Fetching archive for ncurses
> --->  Attempting to fetch ncurses-6.0-20170916_0.darwin_16.x86_64.tbz2 from 
> http://kmq.jp.packages.macports.org/ncurses
> --->  Attempting to fetch ncurses-6.0-20170916_0.darwin_16.x86_64.tbz2.rmd160 
> from http://kmq.jp.packages.macports.org/ncurses
> --->  Installing ncurses @6.0-20170916_0
> --->  Activating ncurses @6.0-20170916_0
> --->  Cleaning ncurses
> --->  Fetching archive for gettext
> --->  Attempting to fetch gettext-0.19.8.1_0.darwin_16.x86_64.tbz2 from 
> http://kmq.jp.packages.macports.org/gettext
> --->  Attempting to fetch gettext-0.19.8.1_0.darwin_16.x86_64.tbz2.rmd160 
> from http://kmq.jp.packages.macports.org/gettext
> --->  Installing gettext @0.19.8.1_0
> --->  Activating gettext @0.19.8.1_0
> --->  Cleaning gettext
> --->  Fetching archive for libffi
> --->  Attempting to fetch libffi-3.2.1_0.darwin_16.x86_64.tbz2 from 
> http://kmq.jp.packages.macports.org/libffi
> --->  Attempting to fetch libffi-3.2.1_0.darwin_16.x86_64.tbz2.rmd160 from 
> http://kmq.jp.packages.macports.org/libffi
> --->  Installing libffi @3.2.1_0
> --->  Activating libffi @3.2.1_0
> --->  Cleaning libffi
> --->  Fetching archive f

Re: Macports installation problem

2017-10-18 Thread John
Thanks for pointing out that I should open the "Terminal". I tried it;
could you check if my Cairo is installed successfully? Should I do
something on Xbox? Thanks!!


Last login: Wed Oct 18 21:01:15 on ttys001
John-MacBook-Pro:~ john$ sudo port install cairo
Password:
Sorry, try again.
Password:
Warning: The Xcode Command Line Tools don't appear to be installed; most
ports will likely fail to build.
Warning: Install them by running `xcode-select --install'.
--->  Computing dependencies for cairo
The following dependencies will be installed:
 bzip2
 db48
 expat
 fontconfig
 freetype
 gettext
 glib2
 libedit
 libffi
 libiconv
 libpixman
 libpng
 libxml2
 ncurses
 openssl
 pcre
 python27
 python2_select
 python_select
 sqlite3
 xorg-kbproto
 xorg-libX11
 xorg-libXau
 xorg-libXdmcp
 xorg-libXext
 xorg-libpthread-stubs
 xorg-libxcb
 xorg-renderproto
 xorg-xcb-proto
 xorg-xcb-util
 xorg-xextproto
 xorg-xproto
 xrender
 xz
 zlib
Continue? [Y/n]: Y
--->  Fetching archive for expat
--->  Attempting to fetch expat-2.2.4_0.darwin_16.x86_64.tbz2 from
http://kmq.jp.packages.macports.org/expat
--->  Attempting to fetch expat-2.2.4_0.darwin_16.x86_64.tbz2.rmd160 from
http://kmq.jp.packages.macports.org/expat
--->  Installing expat @2.2.4_0
--->  Activating expat @2.2.4_0
--->  Cleaning expat
--->  Fetching archive for bzip2
--->  Attempting to fetch bzip2-1.0.6_0.darwin_16.x86_64.tbz2 from
http://kmq.jp.packages.macports.org/bzip2
--->  Attempting to fetch bzip2-1.0.6_0.darwin_16.x86_64.tbz2.rmd160 from
http://kmq.jp.packages.macports.org/bzip2
--->  Installing bzip2 @1.0.6_0
--->  Activating bzip2 @1.0.6_0
--->  Cleaning bzip2
--->  Fetching archive for zlib
--->  Attempting to fetch zlib-1.2.11_0.darwin_16.x86_64.tbz2 from
http://kmq.jp.packages.macports.org/zlib
--->  Attempting to fetch zlib-1.2.11_0.darwin_16.x86_64.tbz2.rmd160 from
http://kmq.jp.packages.macports.org/zlib
--->  Installing zlib @1.2.11_0
--->  Activating zlib @1.2.11_0
--->  Cleaning zlib
--->  Fetching archive for libpng
--->  Attempting to fetch libpng-1.6.32_0.darwin_16.x86_64.tbz2 from
http://kmq.jp.packages.macports.org/libpng
--->  Attempting to fetch libpng-1.6.32_0.darwin_16.x86_64.tbz2.rmd160 from
http://kmq.jp.packages.macports.org/libpng
--->  Installing libpng @1.6.32_0
--->  Activating libpng @1.6.32_0
--->  Cleaning libpng
--->  Fetching archive for freetype
--->  Attempting to fetch freetype-2.8_0.darwin_16.x86_64.tbz2 from
http://kmq.jp.packages.macports.org/freetype
--->  Attempting to fetch freetype-2.8_0.darwin_16.x86_64.tbz2.rmd160 from
http://kmq.jp.packages.macports.org/freetype
--->  Installing freetype @2.8_0
--->  Activating freetype @2.8_0
--->  Cleaning freetype
--->  Fetching archive for libiconv
--->  Attempting to fetch libiconv-1.15_0.darwin_16.x86_64.tbz2 from
http://kmq.jp.packages.macports.org/libiconv
--->  Attempting to fetch libiconv-1.15_0.darwin_16.x86_64.tbz2.rmd160 from
http://kmq.jp.packages.macports.org/libiconv
--->  Installing libiconv @1.15_0
--->  Activating libiconv @1.15_0
--->  Cleaning libiconv
--->  Fetching archive for fontconfig
--->  Attempting to fetch fontconfig-2.12.6_1.darwin_16.x86_64.tbz2 from
http://kmq.jp.packages.macports.org/fontconfig
--->  Attempting to fetch fontconfig-2.12.6_1.darwin_16.x86_64.tbz2.rmd160
from http://kmq.jp.packages.macports.org/fontconfig
--->  Installing fontconfig @2.12.6_1
--->  Activating fontconfig @2.12.6_1
--->  Cleaning fontconfig
--->  Fetching archive for ncurses
--->  Attempting to fetch ncurses-6.0-20170916_0.darwin_16.x86_64.tbz2 from
http://kmq.jp.packages.macports.org/ncurses
--->  Attempting to fetch
ncurses-6.0-20170916_0.darwin_16.x86_64.tbz2.rmd160 from
http://kmq.jp.packages.macports.org/ncurses
--->  Installing ncurses @6.0-20170916_0
--->  Activating ncurses @6.0-20170916_0
--->  Cleaning ncurses
--->  Fetching archive for gettext
--->  Attempting to fetch gettext-0.19.8.1_0.darwin_16.x86_64.tbz2 from
http://kmq.jp.packages.macports.org/gettext
--->  Attempting to fetch gettext-0.19.8.1_0.darwin_16.x86_64.tbz2.rmd160
from http://kmq.jp.packages.macports.org/gettext
--->  Installing gettext @0.19.8.1_0
--->  Activating gettext @0.19.8.1_0
--->  Cleaning gettext
--->  Fetching archive for libffi
--->  Attempting to fetch libffi-3.2.1_0.darwin_16.x86_64.tbz2 from
http://kmq.jp.packages.macports.org/libffi
--->  Attempting to fetch libffi-3.2.1_0.darwin_16.x86_64.tbz2.rmd160 from
http://kmq.jp.packages.macports.org/libffi
--->  Installing libffi @3.2.1_0
--->  Activating libffi @3.2.1_0
--->  Cleaning libffi
--->  Fetching archive for libedit
--->  Attempting to fetch libedit-20170329-3.1_2.darwin_16.x86_64.tbz2 from
http://kmq.jp.packages.macports.org/libedit
--->  Attempting to fetch
libedit-20170329-3.1_2.darwin_16.x86_64.tbz2.rmd160 from
http://kmq.jp.packages.macports.org/libedit
--->  Installing libedit @20170329-3.1_2
--->  Activating libedit @20170329-3.1_2
--->  Cleaning libedit
--->  Fetching archive for pcre
--->  Attempting to fetch 

Re: Macports installation problem

2017-10-18 Thread Al Varnell
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  >:
> 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/ 
>> 
>> 
>>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


Re: Macports installation problem

2017-10-18 Thread Ryan Schmidt
Remember to Reply All so our conversation stays on the mailing list.

My reply is below.


On Oct 18, 2017, at 20:05, John wrote:

> 2017-10-18 7:50 GMT-07:00 Ryan Schmidt:
>> On Oct 18, 2017, at 04:25, John wrote:
>> 
>>>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
>>> ***
>>> 
>>> Last login: Sun Oct 15 02:52:49 on console
>>> Johns-MacBook-Pro:~ john$ /opt/local/bin/port ; exit;
>>> MacPorts 2.4.2
>>> Entering shell mode... ("help" for help, "quit" to quit)
>>> [Users/john] > sudo port install cairo
>>> Error: Unrecognized action "port sudo"
>> 
>> You are correct; there is no GUI app called MacPorts. MacPorts is the 
>> command line program /opt/local/bin/port. 
>> 
>> The installer should have set up your PATH so that you can run it by just 
>> typing "port" instead of that full path. 
>> 
>> 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". 

> 
>After typing quit, I got the following: 
> **
> 
> [Users/john] > quit
> Goodbye
> logout
> Saving session...
> ...copying shared history...
> ...saving history...truncating history files...
> ...completed.
> 
> [Process completed]
> 
> 
> 
> and then I can't type anything 

Ok, it sounds like what you actually did was you double-clicked on "port" in 
the Finder, which opened Terminal and ran the port command for you with no 
arguments.

That's not how MacPorts is used. Instead, open the Terminal, if it's not still 
open. It's in /Applications/Utilities. Then type the command you want, like 
"sudo port install cairo".





Re: Macports installation problem

2017-10-18 Thread Ryan Schmidt
On Oct 18, 2017, at 04:25, John wrote:

>I tried to install Cairo graphics 
> 
> https://www.cairographics.org/download/
> 
>and I need to install Macports. 

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. 


>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
> ***
> 
> Last login: Sun Oct 15 02:52:49 on console
> Johns-MacBook-Pro:~ john$ /opt/local/bin/port ; exit;
> MacPorts 2.4.2
> Entering shell mode... ("help" for help, "quit" to quit)
> [Users/john] > sudo port install cairo
> Error: Unrecognized action "port sudo"

You are correct; there is no GUI app called MacPorts. MacPorts is the command 
line program /opt/local/bin/port. 

The installer should have set up your PATH so that you can run it by just 
typing "port" instead of that full path. 

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". 

Re: Macports installation problem

2017-10-18 Thread Rainer Müller
On 2017-10-18 11:25, John wrote:
> Hi, 
> 
>    I tried to install Cairo graphics 
> 
> 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? 

Follow the setup instructions to add the port command to your PATH:
https://guide.macports.org/chunked/installing.shell.html

Rainer


Re: Macports installation problem

2017-10-18 Thread Al Varnell
Type echo $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/ 
> 
> 
>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


Macports installation problem

2017-10-18 Thread John
Hi,

   I tried to install Cairo graphics

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
***

Last login: Sun Oct 15 02:52:49 on console
Johns-MacBook-Pro:~ john$ /opt/local/bin/port ; exit;
MacPorts 2.4.2
Entering shell mode... ("help" for help, "quit" to quit)
[Users/john] > sudo port install cairo
Error: Unrecognized action "port sudo"