a problem using macPort

Joshua Root jmr at macports.org
Mon Jul 5 06:42:42 PDT 2010


On 2010-7-5 19:51 , Xianghui Xue wrote:
> Hi all,
>     I have installed the macport (.pkg) on my Mac OS 10.6.3.
>     But when I used it (sudo port -v selfupdate Or just sudo port
> installl ***), it showed that:
> 
> Warning: /opt/local/etc/macports/sources.conf specifies invalid source '
>   rsync://rsync.macports.org/release/ports/
> <http://rsync.macports.org/release/ports/> [default]', ignored.
> Warning: No default port source specified in
> /opt/local/etc/macports/sources.conf, using last source as default
> can't read "sources": no such variable
>     while executing
> "lindex $sources end"
>     (procedure "mportinit" line 167)
>     invoked from within
> "mportinit ui_options global_options global_variations"
> Error: /opt/local/bin/port: Failed to initialize MacPorts, can't read
> "sources": no such variable
> 
>     How to fix this problem?  

Correct the syntax of your sources.conf.

- Josh


More information about the macports-users mailing list