Unable to execute port: can't read "sysroot": no such variable
Dear list, I am trying to install Dia by typing the following: cd /opt/local/bin ls daemondo portf portmirror port portindex sudo port install dia Unable to execute port: can't read "sysroot": no such variable What am I doing wrong? Mac OS X 10.5.2 Kind regards, Olga ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
On Mar 12, 2008, at 04:43, Olga Lyashevskaya wrote:
I am trying to install Dia by typing the following:
cd /opt/local/bin
ls daemondo portf portmirror port portindex
sudo port install dia
Unable to execute port: can't read "sysroot": no such variable
What am I doing wrong?
Mac OS X 10.5.2
You may have outdated ports or an outdated MacPorts. Please selfupdate and try again: sudo port selfupdate
Thank you, Ryan --- Ryan Schmidt <ryandesign@macports.org> wrote:
You may have outdated ports or an outdated MacPorts. Please selfupdate and try again: sudo port selfupdate
e7253:~ olichka$ sudo port selfupdate MacPorts base version 1.5 installed Downloaded MacPorts base version 1.600 Configuring, Building and Installing new MacPorts base Error: /opt/local/bin/port: selfupdate failed: Error installing new MacPorts base: shell command "cd /opt/local/var/macports/sources/rsync.macports.org/release/base && ./configure --prefix=/opt/local --with-install-user=root --with-install-group=admin --with-tclpackage=/Library/Tcl && make && make install" returned error 1 Command output: checking build system type... i686-apple-darwin9.2.0 checking host system type... i686-apple-darwin9.2.0 checking target system type... i686-apple-darwin9.2.0 checking for sw_vers... sw_vers checking Mac OS X version... 10.5.2 checking MacPorts version... 1.6.0 checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. Thanks, Olga ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
On 12 Mar, 2008, at 7:45, Olga Lyashevskaya wrote:
e7253:~ olichka$ sudo port selfupdate
MacPorts base version 1.5 installed
Downloaded MacPorts base version 1.600
Configuring, Building and Installing new MacPorts base
Error: /opt/local/bin/port: selfupdate failed: Error installing new MacPorts base: shell command "cd /opt/local/var/macports/sources/rsync.macports.org/release/base && ./configure --prefix=/opt/local --with-install-user=root --with-install-group=admin --with-tclpackage=/Library/Tcl && make && make install" returned error 1
Command output: checking build system type... i686-apple-darwin9.2.0
checking host system type... i686-apple-darwin9.2.0
checking target system type... i686-apple-darwin9.2.0
checking for sw_vers... sw_vers
checking Mac OS X version... 10.5.2
checking MacPorts version... 1.6.0
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
Have you upgraded to Leopard recently? If so, did you install the new version of Xcode? This kind of error often appears when people try to use Tiger's Xcode on Leopard. Regards, Chris
Dear Chris, --- Chris Pickel <sfiera@macports.org> wrote:
Have you upgraded to Leopard recently? If so, did you install the new version of Xcode? This kind of error often appears when people try to use Tiger's Xcode on Leopard.
It is a new iMac, and it came with Leopard on it, so I presume that Xcode must be ok. How can I check it? How can I install things with MacPorts? Sorry for my ignorance, I am not very experienced with Mac. So far I worked mostly on Linux, and now by using MacPorts I just want to be able to use programs which are originally developed for Linux (like dia in this case) Thanks, Olga ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
On 12 Mar, 2008, at 12:07, Olga Lyashevskaya wrote:
Have you upgraded to Leopard recently? If so, did you install the new version of Xcode? This kind of error often appears when people try to use Tiger's Xcode on Leopard.
It is a new iMac, and it came with Leopard on it, so I presume that Xcode must be ok. How can I check it?
How can I install things with MacPorts? Sorry for my ignorance, I am not very experienced with Mac. So far I worked mostly on Linux, and now by using MacPorts I just want to be able to use programs which are originally developed for Linux (like dia in this case)
If it's brand new, it probably doesn't have Xcode (most Mac users don't have a need for a compiler and development environment, but MacPorts does). You'll need to install Xcode 3.0, either from the CDs that came with the computer, or [Apple's developer site][1]. [1] http://developer.apple.com/tools/download/ Regards, Chris
On 12 Mar, 2008, at 12:07, Olga Lyashevskaya wrote:
Have you upgraded to Leopard recently? If so, did you install the new version of Xcode? This kind of error often appears when people try to use Tiger's Xcode on Leopard.
If you don't have a Developer folder at your hard drive's root level, then you don't have Xcode. If there isn't an app called Xcode in the Applications folder within the Developer folder then that's another telling sign. Cheers, - Alex Zavatone
On Mar 12, 2008, at 06:45, Olga Lyashevskaya wrote:
Thank you, Ryan
Ryan Schmidt wrote:
You may have outdated ports or an outdated MacPorts. Please selfupdate and try again: sudo port selfupdate
e7253:~ olichka$ sudo port selfupdate
MacPorts base version 1.5 installed
Downloaded MacPorts base version 1.600
Ok, so your MacPorts was outdated. MacPorts 1.5 did not contain the sysroot variable which the port you're trying to install wants to use. So you need to update to MacPorts 1.6, which selfupdate should do...
Configuring, Building and Installing new MacPorts base
Error: /opt/local/bin/port: selfupdate failed: Error installing new MacPorts base: shell command "cd /opt/local/var/macports/sources/rsync.macports.org/release/base && ./configure --prefix=/opt/local --with-install-user=root --with-install-group=admin --with-tclpackage=/Library/Tcl && make && make install" returned error 1
Command output: checking build system type... i686-apple-darwin9.2.0
checking host system type... i686-apple-darwin9.2.0
checking target system type... i686-apple-darwin9.2.0
checking for sw_vers... sw_vers
checking Mac OS X version... 10.5.2
checking MacPorts version... 1.6.0
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
...except it can't because you have no acceptable C compiler installed. Install Xcode 3 to get the gcc compiler, then try the selfupdate again.
Just to close this thread I would like to thank you all for your help. The problem is solved, I managed to install my little programm. Thanks, Olga ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
participants (4)
-
Alex Zavatone
-
Chris Pickel
-
Olga Lyashevskaya
-
Ryan Schmidt