5

10.7.4 を実行して、次を実行しました。

mkdir -p /opt/mports
cd /opt/mports
svn checkout https://svn.macports.org/repository/macports/trunk
cd trunk/base
./configure --enable-readline
make
sudo make install
make distclean

それから私は実行しnano /opt/local/etc/macports/sources.conf、コメントアウトしrsync://rsync.macports.org/release/tarballs/ports.tarて追加しましたfile://opt/mports/trunk/dports [default]

走った後、sudo port -d sync私は受け取った

DEBUG: Copying /Volumes/Storagestar/Users/themikemasterson/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
--->  Updating the ports tree
Synchronizing local ports tree from file:///opt/mports/trunk/dports
DEBUG: /usr/bin/svn update --non-interactive /opt/mports/trunk/dports
DEBUG: changing euid/egid - current euid: 0 - current egid: 0
svn: OPTIONS of 'https://svn.macports.org/repository/macports/trunk': Server certificate verification failed: issuer is not trusted (https://svn.macports.org)
Command failed: /usr/bin/svn update --non-interactive /opt/mports/trunk/dports
Exit code: 1
DEBUG: command execution failed
while executing
"system $svn_commandline"
Error: Synchronization of the local ports tree failed doing an svn update
DEBUG: Synchronization of 1 source(s) failed
while executing
"mportsync [array get global_options]"
port sync failed: Synchronization of 1 source(s) failed

rsync による更新は正常に機能しますが、ローカル ソースを使用する場合は機能しません。また、最初にチェックアウトするときに証明書を受け入れるオプションが与えられ、永久に受け入れることを選択しました.

4

2 に答える 2

3

手動で実行してみてください (ログファイルと同じですが、--non-interactive は使用しません):

/usr/bin/svn update /opt/mports/trunk/dports

これで、次のメッセージが表示されます。

Error validating server certificate for 'https://svn.macports.org:443':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: *.macports.org
 - Valid: from Tue, 22 Feb 2011 17:29:43 GMT until Tue, 18 Mar 2014 23:36:56 GMT
 - Issuer: 07969287, http://certificates.godaddy.com/repository, GoDaddy.com, Inc., Scottsdale, Arizona, US
 - Fingerprint: ...
(R)eject, accept (t)emporarily or accept (p)ermanently?

を選択するpと、svn は次回実行時に macports の証明書を受け入れますport sync

于 2012-08-14T09:05:33.960 に答える