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.

Help with programming in C or Perl or Python


Post Reply New Thread Subscribe

 
Thread Tools
plshelpme

 
Member Since: Oct 01, 2007
Posts: 1
plshelpme is on a distinguished road

plshelpme is offline
I am used to programming on Red Hat Linux. I'm trying to figure out how to program on my mac, and I've found about a thousand ads on the apple website telling me that my computer came with Perl and Python and the GCC 4.0 compiler. Only I can't find files for these anywhere. Does anyone know what should go in the #! line for Perl? Or why gcc/cc only give me "command not found" on the command line ("which gcc" replies "no gcc in /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/teTeX/bin/i386-apple-darwin-current" and I can't find the library files either)? I'm less familiar with Python, but if someone could get me going on that, I'd take it. I'm just trying to do some desktop programming and have no interest in working in some sort of GUI environment.

Also (other assorted questions), how do I update my path? And is there any editor I can use other than emacs? (xemacs, nedit don't seem to be around)

I'd really appreciate any help anyone could give me.
QUOTE Thanks
Aptmunich

 
Aptmunich's Avatar
 
Member Since: Mar 09, 2004
Location: Munich
Posts: 9,075
Aptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant future
Mac Specs: Aluminium Macbook 2.4 Ghz 4GB RAM, SSD 24" Samsung Display, iPhone 4, iPad 2

Aptmunich is offline
I think you might need to install the developer tools from your install DVD.
QUOTE Thanks
danielb
Guest
 
Posts: n/a

I think developer tools will get you the Perl, Python, and GCC. When GCC is installed it will be installed in a directory called gcc-4.0 not gcc. If you want to compile using gcc filename, You'll need to link gcc to gcc-4.0. I also suggest installing gcc-3.X. GCC is installed in /usr/bin

For editor, I use VIM which I can't remember installing. I think it comes with XCode.

C headers are in /usr/include and libraries are in /usr/lib

Perl and Python, you're on your own. I've only tinkered with them.
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
#!/usr/bin/perl
You can do a which perl, that will tell you the locate of the program. As Aptmunich suggested you will need to install the developer tools.

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

Post Reply New Thread Subscribe


« A Programing question... | Good OSX programming guide for beginner? »
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
Client-side cookies on Python in Mac OSX Hikaru79 OS X - Development and Darwin 0 07-12-2007 10:25 PM
Mac Programming frewegooh Switcher Hangout 20 05-01-2007 02:32 PM
Need advice on programming. HareshKainth OS X - Development and Darwin 3 10-09-2005 02:33 PM
PYTHON PROGRAMMERS!!! how do i compile/run linux-based python code on OS X pkny OS X - Development and Darwin 4 03-20-2005 05:17 PM
Upgrading PERL Forum Setup, MySQL, etc. ssotti OS X - Development and Darwin 0 11-29-2003 11:16 AM

All times are GMT -4. The time now is 09:06 PM.

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?