Hi again, thanks everyone for the help, but now I've got some more problems:( I'm on Mac 10.4.10, just installed macport1.5.0. but when i tried to install cairo i got: jing-tangs-computer:~ Jing$ sudo port install cairo Error: Error executing darwin_8: invalid command name "configure.compiler" Error: Unable to execute port: Error evaluating variants I looked online and found someone saying he got the same problem and after updating the problem was solved. so i tried to update macport by port selfupdate, but i got: jing-tangs-computer:~ Jing$ sudo -u root port selfupdate Error: /opt/local/bin//port: selfupdate failed: Couldn't sync the ports tree: sync failed doing rsync could anyone give me some ideas please? thanks very much!!! Jing Tang School of Computer Science University of Birmingham Mobile: 07872645655 E-mail: jing.t86@gmail.com
On Nov 4, 2007, at 17:10, Jing Tang wrote:
Hi again, thanks everyone for the help, but now I've got some more problems:(
I'm on Mac 10.4.10, just installed macport1.5.0. but when i tried to install cairo i got:
jing-tangs-computer:~ Jing$ sudo port install cairo Error: Error executing darwin_8: invalid command name "configure.compiler" Error: Unable to execute port: Error evaluating variants
I looked online and found someone saying he got the same problem and after updating the problem was solved.
Correct. "configure.compiler" is not part of MacPorts 1.5.0. You need the current version, 1.5.2, and you would generally use selfupdate to upgrade to that version.
so i tried to update macport by port selfupdate, but i got:
jing-tangs-computer:~ Jing$ sudo -u root port selfupdate
Error: /opt/local/bin//port: selfupdate failed: Couldn't sync the ports tree: sync failed doing rsync
could anyone give me some ideas please? thanks very much!!!
So perhaps there was a temporary problem accessing the rsync server. Please try it again. If that still doesn't work, perhaps your network is weird or has a corporate firewall or for some other reason does not allow access to rsync servers. If you cannot fix that problem, you will have to do without the selfupdate facility and build new versions of MacPorts from source yourself. To do so, download the 1.5.2 source from here: http://svn.macports.org/repository/macports/distfiles/MacPorts/ Decompress it, go into the directory, run ./configure, then make, then sudo make install. You should then have the MacPorts 1.5.2 software. You will still need to update your ports tree, though, and by default that also uses rsync. If that's not working, you may want to install subversion, and use subversion to check out a working copy of the dports part of the MacPorts subversion repository, and point your / opt/local/etc/macports/sources.conf at that directory (with a file:/// url) instead of at the rsync url like it is by default. Once you set that up, "port sync" should work fine in the future to update your ports tree.
On 05.11.2007, at 05:57, Ryan Schmidt wrote:
If that's not working, you may want to install subversion, and use subversion to check out a working copy of the dports part of the MacPorts subversion repository, and point your /opt/local/etc/ macports/sources.conf at that directory (with a file:/// url) instead of at the rsync url like it is by default. Once you set that up, "port sync" should work fine in the future to update your ports tree.
Hey, I thought, so I don't need to port trees on my system (I have a subversion-tree for Portfile maintenance anyway)... I edit /opt/local/ etc/macports/sources.conf and that's what I get:
port -dv sync DEBUG: Synchronizing ports tree(s) Synchronizing from file:///Users/jochen/source/macports/dports DEBUG: /opt/local/bin/svn update --non-interactive /Users/jochen/ source/macports/dports DEBUG: changing euid/egid - current euid: 957 - current egid: 700 DEBUG: could not set effective gid to -1 while executing "setegid [name_to_gid [file attributes $portdir -group]]" DEBUG: sync failed doing svn update while executing "mportsync" port sync failed: sync failed doing svn update
sudo port -dv sync DEBUG: Synchronizing ports tree(s) Synchronizing from file:///Users/jochen/source/macports/dports DEBUG: /opt/local/bin/svn update --non-interactive /Users/jochen/ source/macports/dports DEBUG: changing euid/egid - current euid: 0 - current egid: 0 svn: Kann Datei ?\194?\187/Users/jochen/.subversion/servers?\194?\171 nicht ?\195?\182ffnen: Permission denied DEBUG: shell command "/opt/local/bin/svn update --non-interactive / Users/jochen/source/macports/dports" returned error 1 Command output: svn: Kann Datei ?\194?\187/Users/jochen/.subversion/ servers?\194?\171 nicht ?\195?\182ffnen: Permission denied
while executing "system $svn_commandline" DEBUG: sync failed doing svn update while executing "mportsync" port sync failed: sync failed doing svn update I know how to update that dports tree manually, but it would be nice to have port sync working that way;) Greetings, Jochen -- Einigkeit und Recht und Freiheit http://www.Jochen- Kuepper.de Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D Sex, drugs and rock-n-roll
On Nov 5, 2007, at 02:25, Jochen Küpper wrote:
Hey, I thought, so I don't need to port trees on my system (I have a subversion-tree for Portfile maintenance anyway)... I edit /opt/ local/etc/macports/sources.conf and that's what I get:
port -dv sync DEBUG: Synchronizing ports tree(s) Synchronizing from file:///Users/jochen/source/macports/dports DEBUG: /opt/local/bin/svn update --non-interactive /Users/jochen/ source/macports/dports DEBUG: changing euid/egid - current euid: 957 - current egid: 700 DEBUG: could not set effective gid to -1 while executing "setegid [name_to_gid [file attributes $portdir -group]]" DEBUG: sync failed doing svn update while executing "mportsync" port sync failed: sync failed doing svn update
sudo port -dv sync DEBUG: Synchronizing ports tree(s) Synchronizing from file:///Users/jochen/source/macports/dports DEBUG: /opt/local/bin/svn update --non-interactive /Users/jochen/ source/macports/dports DEBUG: changing euid/egid - current euid: 0 - current egid: 0 svn: Kann Datei ?\194?\187/Users/jochen/.subversion/servers?\194? \171 nicht ?\195?\182ffnen: Permission denied DEBUG: shell command "/opt/local/bin/svn update --non-interactive / Users/jochen/source/macports/dports" returned error 1 Command output: svn: Kann Datei ?\194?\187/Users/jochen/.subversion/ servers?\194?\171 nicht ?\195?\182ffnen: Permission denied
while executing "system $svn_commandline" DEBUG: sync failed doing svn update while executing "mportsync" port sync failed: sync failed doing svn update
I know how to update that dports tree manually, but it would be nice to have port sync working that way;)
Hmm... I've been using a Subversion working copy for my dports tree for a long time, but I forgot that I had also installed this function in my ~/.bashrc: port() { case "$1" in sync) PORTS_DIR=/Users/rschmidt/macports/dports svn revert $PORTS_DIR/PortIndex | sed s%$PORTS_DIR/%% svn up $PORTS_DIR | sed s%$PORTS_DIR/%% ;; esac } My dports tree is owned by me, and I can just "port sync" (without sudo) and it updates.
Citando Ryan Schmidt :
On Nov 5, 2007, at 02:25, Jochen Küpper wrote:
Hey, I thought, so I don't need to port trees on my system (I have a subversion-tree for Portfile maintenance anyway)... I edit /opt/local/etc/macports/sources.conf and that's what I get:
port -dv sync DEBUG: Synchronizing ports tree(s) Synchronizing from file:///Users/jochen/source/macports/dports DEBUG: /opt/local/bin/svn update --non-interactive /Users/jochen/source/macports/dports DEBUG: changing euid/egid - current euid: 957 - current egid: 700 DEBUG: could not set effective gid to -1 while executing "setegid [name_to_gid [file attributes $portdir -group]]" DEBUG: sync failed doing svn update while executing "mportsync" port sync failed: sync failed doing svn update
I know how to update that dports tree manually, but it would be nice to have port sync working that way;)
Hmm... I've been using a Subversion working copy for my dports tree for a long time, but I forgot that I had also installed this function in my ~/.bashrc:
port() { case "$1" in sync) PORTS_DIR=/Users/rschmidt/macports/dports svn revert $PORTS_DIR/PortIndex | sed s%$PORTS_DIR/%% svn up $PORTS_DIR | sed s%$PORTS_DIR/%% ;; esac }
My dports tree is owned by me, and I can just "port sync" (without sudo) and it updates.
Well, it works for me without any change to port. My copy of the svn tree is in /usr/macports, it belongs to me and I can just "port sync" (without sudo). % port version Version: 1.520 % ls -ld /usr/macports drwxr-xr-x 46 manu manu 1564 7 Nov 11:14 /usr/macports % id uid=501(manu) gid=501(manu) groups=501(manu), 81(appserveradm), 79(appserverusr), 80(admin) % port -d sync DEBUG: Synchronizing ports tree(s) Synchronizing from file:///usr/macports/ DEBUG: /opt/local/bin/svn update --non-interactive /usr/macports DEBUG: changing euid/egid - current euid: 501 - current egid: 501 U /usr/macports/multimedia/ffmpeg/Portfile ... As you can see, the directory (and all its content) is owned by me, with my primary gid. However, the first time I tried, it failed because everything was owned by manu:admin and I had errors about setegid being unable to change effective group. Emmanuel
Hi Emmanuel and Ryan, thank you for your help! So I googled a bit about dscl and created the group for my primary gid, and, voila, port sync via svn works! Greetings, Jochen -- Einigkeit und Recht und Freiheit http://www.Jochen- Kuepper.de Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D Sex, drugs and rock-n-roll
participants (4)
-
Emmanuel Hainry
-
Jing Tang
-
Jochen Küpper
-
Ryan Schmidt