Setting Mac OS X build environment

1,702 views
Skip to first unread message

Steve

unread,
Jan 24, 2012, 11:36:31 AM1/24/12
to Android Building
Hello,

I am trying to setup my build environment in my macintosh,
I've installed macports,
and trying to follow the official guideline : http://source.android.com/source/initializing.html
but, when trying to

Get make, git, and GPG packages from MacPorts:

$ POSIXLY_CORRECT=1 sudo port install gmake libsdl git-core gnupg
If using Mac OS 10.4, also install bison:

$ POSIXLY_CORRECT=1 sudo port install bison

I got several problem :

sudo: port: command not found
macports-2.0.3 ngentiaw$ PATH=/opt/local/bin:$PATH
Steve-mac-mini:macports-2.0.3 ngentiaw$ POSIXLY_CORRECT=1 sudo port
install gmake libsdl git-core gnupg
Warning: No index(es) found! Have you synced your source indexes?
Error: Port gmake not found
To report a bug, see <http://guide.macports.org/#project.tickets>

I have searching everywhere and I can't find the answer


Any idea is appreciated

Thanks,
Steven

Ying Wang

unread,
Jan 24, 2012, 12:52:46 PM1/24/12
to android-...@googlegroups.com
It seems you didn't install MacPorts:

Install MacPorts from macports.org.

Note: Make sure that /opt/local/bin appears in your path BEFORE /usr/bin. If not, add

export PATH=/opt/local/bin:$PATH

to your ~/.bash_profile.



--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

Steve

unread,
Jan 25, 2012, 3:00:28 PM1/25/12
to Android Building
Hello,

Thank you for your response,
But unfortunately I've tried and nothing happened,
finally, I have echo $PATH, the result as shown below :
/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/
bin

the error are pretty much the same
Warning: No index(es) found! Have you synced your source indexes?
Error: Port gmake not found
To report a bug, see <http://guide.macports.org/#project.tickets>

We kindly appreciate every response,
Thank you very much
Steven

On Jan 24, 12:52 pm, Ying Wang <wangy...@android.com> wrote:
> It seems you didn't install MacPorts:
>
> Install MacPorts from macports.org <http://www.macports.org/install.php>.
>
> *Note: Make sure that /opt/local/bin appears in your path BEFORE /usr/bin.
> If not, add*
>
> export PATH=/opt/local/bin:$PATH
>
> *to your ~/.bash_profile.*

Steve

unread,
Jan 28, 2012, 1:11:12 PM1/28/12
to Android Building
Hi,

it seems my last email encounter a failure,
It really works right now, just try to install macport using the
installer,
Before that I tried to install using zip file,

Hope it works for you
Reply all
Reply to author
Forward
0 new messages