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.

installing "make" in terminal


Post Reply New Thread Subscribe

 
Thread Tools
turnip1.0

 
Member Since: Mar 14, 2010
Posts: 5
turnip1.0 is on a distinguished road

turnip1.0 is offline
hi, just having a problem using "make" in the terminal, i have xcode installed as i understood that it might have been the problem i was facing, does anyone have any input as to how i might install "make" for use with college software
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,218
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 offline
Make should be installed along with Xcode. There should be a symlink in /Developer/usr/bin from make to gnumake. Does this exist?

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
turnip1.0

 
Member Since: Mar 14, 2010
Posts: 5
turnip1.0 is on a distinguished road

turnip1.0 is offline
yes as far as I can tell there is a symlink between the two in the bin folder
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,218
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 offline
There should also be a copy of gnumake in your /usr/bin/ folder as well. Edit the file /etc/paths and if /usr/bin isn't there (which it should be), add it.

If this doesn't work, post back with the output from "echo $PATH" (without the quotes).

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
turnip1.0

 
Member Since: Mar 14, 2010
Posts: 5
turnip1.0 is on a distinguished road

turnip1.0 is offline
to the best of my knowledge the /usr/bin is in the $PATH and there is a gnumake along with make in the bin directory for which make is an alias for gnumake
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,218
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 offline
If you have /usr/bin in your path (which you should) and there is a symlink from make to gnumake, you should be good to go. Does it work if you try to build something? If not, what is the output?

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
morricej

 
Member Since: Nov 16, 2011
Posts: 2
morricej is on a distinguished road

morricej is offline
I recently updated to Lion from snow leopard and I am having some troubles using make. I upgraded to Xcode 4.2 because I heard that could cause a problem but I am still having issues. I went though each of the things mentioned in this forum already (each of them checking out) and this is what is listed when I try to use the terminal to install the perl module HTML:arser:

morricej:html-parser-3.69 Jarrod$ make
cp lib/HTML/PullParser.pm blib/lib/HTML/PullParser.pm
cp Parser.pm blib/lib/HTML/Parser.pm
cp lib/HTML/Entities.pm blib/lib/HTML/Entities.pm
cp lib/HTML/LinkExtor.pm blib/lib/HTML/LinkExtor.pm
cp lib/HTML/TokeParser.pm blib/lib/HTML/TokeParser.pm
cp lib/HTML/Filter.pm blib/lib/HTML/Filter.pm
cp lib/HTML/HeadParser.pm blib/lib/HTML/HeadParser.pm
/opt/local/bin/perl /opt/local/lib/perl5/5.8.9/ExtUtils/xsubpp -typemap /opt/local/lib/perl5/5.8.9/ExtUtils/typemap -typemap typemap Parser.xs > Parser.xsc && mv Parser.xsc Parser.c
/opt/local/bin/perl mkhctype >hctype.h
/opt/local/bin/perl mkpfunc >pfunc.h
/usr/bin/gcc-4.0 -c -pipe -O2 -arch i386 -arch ppc -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"3.69\" -DXS_VERSION=\"3.69\" "-I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE" -DMARKED_SECTION Parser.c
/bin/sh: /usr/bin/gcc-4.0: No such file or directory
make: *** [Parser.o] Error 127

Do I need to install gcc-4.0? I thought this was included in Xcode? Is it ok for me to do a manual install of this without messing anything up?

Thanks for any help you might be able to provide.
QUOTE Thanks
morricej

 
Member Since: Nov 16, 2011
Posts: 2
morricej is on a distinguished road

morricej is offline
I was able to figure out (somewhat) what was happening with the reference to gcc-4.0 during my HTML:: Parser install. It turns out the version of perl that I was using was the default one that was installed during an installation from MacPorts (using perl version 5.8.9). When I updated to Lion this version of perl was still the default version of perl because of the way my $PATHS variable was set up. Anyway, for some reason this version of perl causes the makefile when installing modules to call specifically for gcc-4.0 instead of the default that is used for lion (not too sure about this but it seems to be either gcc or gcc-4.2). Using the system's version of perl (5.12.3) was able to clear this up for me. Hope this might help for anybody else out there who might be going through a similar process.
QUOTE Thanks

Post Reply New Thread Subscribe


« How do I compile source code on a mac Im trying to compile hydra 7.1.src.tar.gz on a | Looking for a Mac OSX Developer for a short project »
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
Terminal Won't Open icefall5 OS X - Operating System 7 08-25-2010 09:26 AM
Installing the klog Command on X11 Terminal on my Mac gabrown OS X - Apps and Games 1 01-07-2009 11:49 PM
installing 'ack' and terminal help joeminkie OS X - Development and Darwin 7 12-11-2008 06:09 PM
Terminal problems please help CliveO OS X - Operating System 6 03-20-2007 11:04 AM
Terminal Help rs2sensen OS X - Apps and Games 1 04-25-2005 11:52 PM

All times are GMT -4. The time now is 01:39 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?