Search

Languages > Other Languages

Create command line shortcuts for the appropriate programming languages and tools.

MAMP PRO - Languages - Other Languages

After activation, it’s enough to just type the name of a tool to invoke it, it’s not necessary to prefix it with “/Applications/MAMP/Library/bin”. To confirm that you are using the MAMP PRO instances of a language, open a new shell window in Terminal.app and type `python -v’. You should see the version shown in MAMP PRO.

  • Python [VERSION]
    Python is a widely used high-level, general-purpose, interpreted, dynamic programming language. MAMP PRO installs Python in your “/Applications/MAMP/Library/bin/python” directory. MAMP PRO does not make any changes to the Python build that is pre-installed on your Mac. The Python build provided by Apple is installed in “/usr/bin/python”.

    Enable this option to make the current Python version available on the command line. MAMP PRO uses an alias to provide this functionality. When this option is checked, the following is added to your “~/.profile” file. If a “.zprofile” file exists, the “.profile” file will be added to it.

    alias python='/Applications/MAMP/Library/bin/python'
    

    To confirm that you are using the MAMP PRO instances of Python, open a new shell window in Terminal.app and type python -V. You should see the version shown in MAMP PRO.

    Ruby [VERSION], rails, gem, erb, irb, rake & ri
    Ruby is a dynamic, reflective, object-oriented, general-purpose programming language.

    Enable this option to make the current Ruby version available on the command line. MAMP PRO uses aliases to provide this functionality. When this option is checked, the following will be added to your “~/.profile” file. If a “.zprofile” file exists, the “.profile” file will be added to it.

     alias erb='/Applications/MAMP/Library/bin/erb'
     alias gem='/Applications/MAMP/Library/bin/gem'
     alias irb='/Applications/MAMP/Library/bin/irb'
     alias rake='/Applications/MAMP/Library/bin/rake'
     alias rdoc='/Applications/MAMP/Library/bin/rdoc'
     alias ri='/Applications/MAMP/Library/bin/ri'
     alias ruby='/Applications/MAMP/Library/bin/ruby'
     alias rails='/Applications/MAMP/Library/bin/rails'
    

    To confirm that you are using the MAMP PRO instances of Ruby, open a new shell window in Terminal.app and type ruby -v. You should see the version shown in MAMP PRO.

    MAMP PRO - Languages - Other Languages - Ruby version

  • Perl [VERSION] & cpan
    Perl is a high-level, general-purpose, interpreted, dynamic programming language. A version 5 of Perl is included with MAMP PRO.

    Enable this option to make the current version of Perl available on the command line. MAMP PRO uses aliases to provide this functionality. When this option is checked, the following is added to your “~/.profile” file. If a “.zprofile” file exists, the “.profile” file will be added to it.

    alias perl='/Applications/MAMP/Library/bin/perl'
    alias cpan='/Applications/MAMP/Library/bin/cpan'
    

    To confirm that you are using the MAMP PRO instances of Perl, open a new shell window in Terminal.app and type perl -v. You should see the version shown in MAMP PRO.

MAMP PRO - Languages - Other Languages - Python version