New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Make Terminal command


Post Reply New Thread Subscribe

 
Thread Tools
richbits

 
Member Since: Jan 08, 2012
Posts: 4
richbits is on a distinguished road

richbits is offline
Forgive me if this is not the correct place to post, but I found a similar question here.

I have used a mac as my main machine for about 6 years, but have had no real need to get involved in the terminal. I've dabbled with xcode, but wanted to try something new and decided to try to learn Python. The first step was downloading Python, and then following the readme instructions as follows:


Code:
On Unix, Linux, BSD, OSX, and Cygwin:

    ./configure
    make
    make test
    sudo make install

So I have run the first step although it doesn't appear successful:

Code:
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... darwin
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/Volumes/Richard Home/richard/Downloads/Python-3.2.2':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
Any help on this would be appreciated....

But then I don't seem to be able to run the make command, which is how I ended up at the link above.

I've followed the advice within the post with the following results:

Code:
Richards-Mac-Pro:~ richard$ which gnumake
Richards-Mac-Pro:~ richard$ sudo ln -s /usr/bin/gnumake /usr/bin/make
Password:
ln: /usr/bin/make: File exists
Richards-Mac-Pro:~ richard$ which make
Richards-Mac-Pro:~ richard$
I have reinstalled xcode (from the app store), but still get no result from which make.

I'd appreciate any advice on how to get python 3.2.2 up and running.

Thanks.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,642
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
Any particular reason you're building Python? Not only is it included with OS X but the Python website has pre-built binaries.

Python installers: http://python.org/download/

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Personal Twitter
QUOTE Thanks
richbits

 
Member Since: Jan 08, 2012
Posts: 4
richbits is on a distinguished road

richbits is offline
Quote:
Originally Posted by vansmith View Post
Any particular reason you're building Python? Not only is it included with OS X but the Python website has pre-built binaries.

Python installers: Download Python
Ah, thanks... Yes too much haste....

Doesn't explain "which make" not returning a path, but should get me on the road to installation.

Thanks.
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,620
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
echo $PATH

I bet /usr/bin does not exist in your path.

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,642
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
Quote:
Originally Posted by Dysfunction View Post
echo $PATH

I bet /usr/bin does not exist in your path.
That would make sense since that's where make resides but I have no idea how /usr/bin/ wouldn't be in the user's path. I have however seen Xcode installs go wrong and leave certain symlinks uncreated (make is a symlink to /usr/bin/gnumake).

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Personal Twitter
QUOTE Thanks
richbits

 
Member Since: Jan 08, 2012
Posts: 4
richbits is on a distinguished road

richbits is offline
Thanks for your replys, sorry I've been tied up for a few days.

my path is as follows:
Code:
Richards-Mac-Pro:Python-3.2.2 richard$ $PATH
-bash: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin: No such file or directory
so it does contain /usr/bin, but gets a bit messy towards the end. Not sure what the No such file or directory is referring to (I get it on my macbook too).
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,642
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
Throw "echo" in front of that and you won't get that error.

What do you get when you execute the following?
Code:
ls -l /usr/bin/make

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Personal Twitter
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi

rman is offline
Did you load the xcode development environment? If not that maybe why the make command is not available.

Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
QUOTE Thanks
richbits

 
Member Since: Jan 08, 2012
Posts: 4
richbits is on a distinguished road

richbits is offline
Thanks, I've reinstalled xcode again and it all seems to have sorted itself out.

Many thanks for your help.
QUOTE Thanks

Post Reply New Thread Subscribe


« Applescript eject busy drive | Bluetooth programming question »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
gedit command not found in Terminal contardo OS X - Apps and Games 13 12-21-2011 04:57 PM
keyboard shortcuts for command line navigation in the terminal steviep OS X - Operating System 4 07-02-2011 05:30 PM
Terminal Command to open most recently modified .Numbers file ??? RiDE OS X - Development and Darwin 3 09-30-2010 01:52 PM
open new terminal from command line drjimmy42 OS X - Operating System 0 03-02-2009 11:06 PM
make command oo_mac_oo OS X - Development and Darwin 4 09-06-2003 11:43 PM

All times are GMT -4. The time now is 10:40 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?