Mac OS X - macports - Warning: No index(es) found! Have you synced your source indexes?

7,576

Solution 1

Perhaps this is a firewall issue? If you have a proxy server, you might try setting up rsync to work with it. For example:

export RSYNC_PROXY=myproxy.domain.com:80
sudo -E port selfupdate

The -E option preserves the user environment of the sudo-ing user.

Hope this helps -- it worked for me, anyway.

Solution 2

If you're behind a firewall, you'll need to open port 873 for rsync.

Share:
7,576

Related videos on Youtube

benza
Author by

benza

Updated on September 18, 2022

Comments

  • benza
    benza almost 2 years

    I'm trying to setup an Android build environment for Android. I'm following these instructions.

    However, after the installation of MacPorts I'm not able to install the environment.

    Following the instructions I launched this command:

    sudo port install gmake libsdl git-core gnupg
    

    and I received this message:

    Warning: No index(es) found! Have you synced your source indexes?
    Error: Port gmake not found
    

    Now, I tried the selfupdate command but the connection timed-out. I tried the different solutions that I found in the MacPort FAQ but I'm not able to connect to SVN. The connection works fine, if I ping a website from the terminal there is no problem.

    • Paul R
      Paul R about 13 years
      It's not self update - it's selfupdate - try sudo port -d selfupdate - focus on getting this step to work
    • benza
      benza about 13 years
      thanks a lot, I tried but I have this error: rsync: failed to connect to rsync.macports.org: Operation timed out (60) rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-40/rsync/clientserver.c(105) [receiver=2.6.9]
    • benza
      benza about 13 years
      It seems that there is no connection but if I ping other pages works fine
    • Paul R
      Paul R about 13 years
      It sounds like maybe you have an old version of macports - try getting the latest version from macports.org and start again
    • benza
      benza about 13 years
      I checked my version and is the latest one. I installed it using MacPorts-1-2.9.2.pkg and I don't understand why the rsync fails to connect to rysing.macports.org
    • Paul R
      Paul R about 13 years
      @benza: does the first part work, e.g. when I do a selfupdate I get: ---> Updating the ports tree DEBUG: Synchronizing ports tree(s) Synchronizing local ports tree from http://www.macports.org/files/ports.tar.gz No updates for http://www.macports.org/files/ports.tar.gz DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/b‌​ase ---> Updating MacPorts base sources using rsync - do you get that far ?
    • Paul R
      Paul R about 13 years
      @benza: weird - looks like a connectivity issue, or maybe the permissions are wrong on the directory where macports needs to store the ports tree data file ~/.macports ?
    • benza
      benza about 13 years
      I don't have the folder ~/.macports but with sudo I suppose that there are not issues about permission (or am I wrong). Could be a connectivity issue but I don't know how to be sure about that. If I ping the same address there is not problem.
    • benza
      benza about 13 years
      and for the SVN I have this error: svn: OPTIONS of 'svn.macports.org/repository/macports/trunk': could not connect to server (svn.macports.org)
    • HikeMike
      HikeMike about 13 years
      @benza Try to wget or curl that URL from the command line.