Languages > Other Languages

Here you have the possibility to set up shortcuts for the command line for the corresponding programming languages and tools.

MAMP PRO - Languages - Other Languages

After the activation, it will be sufficient to simply type the name of a tool to call it, it’s not necessary to prepend 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, ruby -v or perl -v. You should see the version displayed 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 will not make any changes to the Python build that is pre installed on your Mac. The Apple-provided build of Python is installed in “/usr/bin/python”.

    Check 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 is included in 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 displayed in MAMP PRO.

    MAMP PRO - Languages - Other Languages - Python version

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

    Check 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 is added to your “~/.profile” file. If a “.zprofile” file exists, the “.profile” file is included in 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 displayed 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.

    Check this option to make the current Perl version 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 is included in 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 displayed in MAMP PRO.

    MAMP PRO - Languages - Other Languages - Perl version