I use mac for most of my development purpose, and it’s already lil scary trying to install executables and libraries which are already available in .exe for windows but no .dmg for mac 😭 Geoserver is one of the tools that I use all the time, until version. 2.12 geoserver shipped with .dmg to install it! Easy pisy !! 😁 But after 2.12 it switched to platform independent binary which is lil bit tricky to install. But don’t worry!!😉 In this blog you’ll find all pieces needed to run geoserver’s latest stable release successfully. Let’s get started!!
Step 1 : Downloading JAVA JRE 8Geoserver works on JAVA environment (more specifically JRE 8 *not latest one) , you can grab your copy here . The procedure to install it is straight forward. Check whether JAVA is installed by not as follows:
- Open system preferences and see if you have JAVA icon there
- Open terminal and type > Java -version
Step 2: Download copy of geoserver stable platform independent binaryIt is suggested to use stable copy all the time because it is always tested and chances of getting bugs will be lesser. You can grab your copy here . This will download a zip which you have to extract.
Step 3: Setting up geoserverSetting up geoserver is a two part process, one is putting geoserver in expected directory and second is setting up environment variables.
Step 3.1 Putting geoserver in directoryOpen the new finder window, click on go tab from top and select “Go to Folder” and type “usr/local”. Put the extracted geoserver folder in the local directory
Step 3.2 Setting up geoserver and environment variablesOnce folder is pasted , type following command in terminal window >
this will set the GEOSERVER_HOME environment variable. Once the variable is set, next is to make sure the current user is the owner of the folder. To find your current username if you are not sure, checkout this post. >
Replace krishna with whatever is your username.
sudo chown -R krishna /usr/local/geoserver-2.1.0/