Now, let's make some directories to download the Tomcat source code into.The following commands will set the variables for your current command-line (terminal) session:Īnd these commands will make sure these variables are available for future terminal sessions:Įcho 'export JAVA_HOME=/Library/Java/Home' > ~/.bash_profileĮcho 'export PATH="$JAVA_HOME/bin:$PATH"' > ~/.bash_profileĮcho 'export ANT_HOME=/usr/share/ant' > ~/.bash_profileĮcho 'export PATH="$ANT_HOME/bin:$PATH"' > ~/.bash_profile If no directory path is printed out for one, or both, of these, then follow the instructions below to set the JAVA_HOME and ANT_HOME environment variables. If you do, the following command should print out the directories that the variables are pointed to: See if you have the JAVA_HOME and ANT_HOME environment variables set.If, at any time, you need to know what your current directory is, type pwd (print working directory) into the the terminal. If you are using another terminal, it is up to you to adjust the commands to fit your terminal. Make sure that you are comfortable editing these files before you proceed and that you understand the consequences.Īll the commands below are intended to be executed in a terminal window and it is assumed that you are using the default bash terminal for Mac OS X. See this page on stack overflow for some information on which one you may want to edit. Your machine may require that you alter the ~/.bash_login file or the ~/.profile file instead. Some of the lines below require altering the ~/.bash_profile file. If you want to install a different version of Tomcat, please consult the Apache Tomcat documentation. These instructions also assume the latest release of Tomcat as of the time of this writing, which is version 7.0.29. If they are in different locations on your machine, please make adjustments accordingly. The instructions in this tutorial assume that Ant is located at /usr/share/ant and Java is located at /Library/Java/Home. You must have both Java and Apache Ant installed to complete this tutorial. If you are on a different version of OS X, please consult the documentation specific to your version prior to following this tutorial. Note that I am on Mac OS X Snow Leopard (version 10.5.8). It is up to you to execute the commands outlined in this tutorial and is stronglyĪdvised that if you do not understand the implications or repercussions one or more of the following Open a Terminal and issue ' rm -r' to remove these directories and their sub-directories (with ' f' indicating no confirmation prompt).The instructions below are to be followed at your own discretion and at Make sure that MySQL is not running (Open the 'Activity Monitor' under the 'Applications/Utilities', and check for the process ' mysqld').The line ' MYSQLCOM=-YES-' starts MySQL automatically during startup. Press cntl-x to exit 'nano' and enter 'Y' to save the file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |