Results 1 to 4 of 4
  1. #1

    Member Since
    Oct 01, 2007
    Help with programming in C or Perl or Python
    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.

  2. #2

    Aptmunich's Avatar
    Member Since
    Mar 09, 2004
    Aluminium Macbook 2.4 Ghz 4GB RAM, SSD 24" Samsung Display, iPhone 4, iPad 2
    I think you might need to install the developer tools from your install DVD.

  3. #3
    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.

  4. #4

    rman's Avatar
    Member Since
    Dec 24, 2002
    Los Angeles, California
    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
    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!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Perl | Python Plugins
    By jpr25 in forum OS X - Operating System
    Replies: 5
    Last Post: 06-23-2011, 01:34 PM
  2. Perl/Tk for OS X?
    By 2Hit6 in forum OS X - Development and Darwin
    Replies: 11
    Last Post: 11-10-2009, 12:58 PM
  3. Help with Python Programming
    By blackflag91 in forum OS X - Apps and Games
    Replies: 1
    Last Post: 07-26-2009, 09:30 PM
  4. Perl
    By Destructive in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 10-22-2007, 12:49 PM
  5. Replies: 4
    Last Post: 03-20-2005, 05:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts