Software Defined Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

Development on Mac OSX

 
SOLVED
Go to solution
Highlighted
Occasional Advisor

Development on Mac OSX

Hi,

Is there any documentation on setting up Mac OSX as a development environment?

 

Regards,

 

Paul

4 REPLIES 4
Highlighted
Occasional Advisor
Solution

Re: Development on Mac OSX

Here are the steps I used to set up my Mac for SDN development:

 

1. Download Oracle JDK 7u25 - http://www.oracle.com/technetwork/java/javase/downloads/index.html
2. Install JDK per instructions.
3. Make sure your java path is set correctly by running - "export JAVA_HOME=$(/usr/libexec/java_home)"
4. Confirm version with "java -version"
5. Download latest version of Maven - http://maven.apache.org/download.cgi
6. Copy unzipped Maven folder to suitable location
7. Set M2 path - "export M2_HOME={Maven install location}"
8. Add Maven bin folder to your PATH - "export PATH={bin folder install location}:$PATH"
9. Confirm all system variables are set by running the "env" command
10. Confirm Maven is installed correctly - "mvm --version". Make sure it lists the correct Java version.
11. Download Eclipse Standard from http://www.eclipse.org/downloads/
12. Untar Eclipse and put the folder in to your Applications directory
13. Create a Eclipse_Workspace directory in your Documents folder
14. In the Eclipse preferences under Java/Build Path/Classpath Variables create a new path called M2_REPO with the path of /Users/<user>/.m2/repository

15. Unzip the sdn-sdk file into a suitable directory.

16. Run the install-sdk script in the bin directory of the sdk folder.

 

Highlighted
Advisor

Re: Development on Mac OSX

At this time, only Ubuntu 12.04 and later are officially supported.

 

Having said that, though, development on OS X may work but you'll need to at least modify the install scripts for the sdn-sdk package.  Of course, the controller itself won't run on OS X.

Highlighted
Occasional Advisor

Re: Development on Mac OSX

I had no issues installing the sdk on Mac OSX 10.7. Actually the SDN Controller Programming Guide lists Ubuntu, Mac OSX and even Windows 7 as suitable development environments.

 

Highlighted
Advisor

Re: Development on Mac OSX

That's great to hear!

 

By the way, thanks for writing up the steps you went through to install all this on OS X.