OSX 10.7.5 Testing

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

OSX 10.7.5 Testing

marco.vermeulen
Administrator
I received this in an email from Lee Fent regarding testing on OSX Lion:

Marco,

Here is what I've done as part of my testing on OSX 10.7.5

Created a new user and switched to that user.
Ran the curl script.  I'm not 100% that curl is natively installed since I've got Homebrew installed also and it could have polluted my environment.  Still, I think it's very likely that curl is installed and don't really see that as being a major blocking point for anyone looking to do development work.
Here I hit an error about JAVA_HOME not being defined.  Java and javac are both available on the path and none of my other environments explicitly define JAVA_HOME.  I'm using the Apple provided Java and other applications seem to work w/o an explicit JAVA_HOME.  

At this point I'm not certain if it's a better idea to setup a JAVA_HOME and try the script again or wait to see if there is a programmatic fix to make it more universal.  Personally I think that our target users are developers, so probably requiring them to sort out JAVA_HOME isn't unreasonable.

Please let me know how you'd like me to proceed.

Thx,
Lee
---
Marco Vermeulen
Reply | Threaded
Open this post in threaded view
|

Re: OSX 10.7.5 Testing

marco.vermeulen
Administrator
Hi Lee,

Just a word of thanks for helping out with the testing. Every bit of feedback we're getting is valuable and much appreciated.

Regarding curl:
Curl does come installed as part of OSX, as well as just about any other *nix platform. That's the reason I opted for curl as opposed to wget. Curl is not only used for installing gvm, but also used by gvm for fetching binaries and performing all comms with the server. You do make a fair point that some systems might not have it installed by default (probably cygwin), so I'll include it in the installation instructions as a prerequisite.

About JAVA_HOME:
The check for the JAVA_HOME environment variable that you're running into is one that I put in place. It means that the installer is doing what it should :-)
I could probably make the message a bit more descriptive, but I do think that it's vital that it's set before going on. This variable is not used by gvm itself, but by almost every SDK that you will ever use with gvm. I know that Grails also requires it in order to function properly: http://grails.org/doc/latest/guide/gettingStarted.html#requirements

Regarding how to proceed, please go ahead and follow all prompts that the installer gives you. You might run into a few more as all the checks are being performed along the way. If you feel my descriptions in these hints are lacking, please do raise them over at github as improvements.

Thanks and good luck!
Marco.
---
Marco Vermeulen
Reply | Threaded
Open this post in threaded view
|

Re: OSX 10.7.5 Testing

OldTroll
I'll force the JAVA_HOME to be set and post those results.  I think grails is able to operate on a system w/o JAVA_HOME defined.  If I run `env | grep JAVA_HOME` I don't have a JAVA_HOME defined on OSX, but I can run grails normally (console, create commands, run test, everything I've tried to do).  Since I switch between several versions of grails (1.3.7, 1.3.9, 2.0.4 and 2.1.0), I handle it by manipulating GRAILS_HOME.  This works well, but it's cumbersome (hence my interest in the project).  So, it would appear that somehow the grails bootstrapping is determining what to use for JAVA_HOME and getting around my lack of JAVA_HOME in some fashion.  Maybe it's worth looking at their code for inspiration?

L
Reply | Threaded
Open this post in threaded view
|

Re: OSX 10.7.5 Testing

marco.vermeulen
Administrator

Hi Lee,

Quoting from the link I sent from the grails website on getting started:

"Download the appropriate JDK for your operating system, run the installer, and then set up an environment variable called JAVA_HOME pointing to the location of this installation. If you're unsure how to do this, we recommend the video installation guides from grailsexample.net"

The fact that Java is being picked up is a fallback for in case you haven't set your JAVA_HOME. Not optimal, so I recommend you set it for Grails to function properly.

At this stage I don't see our requirement for the presence of this variable as a big deal. Most of the people using this installer will have prior experience in Java development and will already have JAVA_HOME set in their bash profile. It's common practice.

Cheers,
Marco.

On Oct 1, 2012 9:58 PM, "OldTroll [via gvm-dev]" <[hidden email]> wrote:
I'll force the JAVA_HOME to be set and post those results.  I think grails is able to operate on a system w/o JAVA_HOME defined.  If I run `env | grep JAVA_HOME` I don't have a JAVA_HOME defined on OSX, but I can run grails normally (console, create commands, run test, everything I've tried to do).  Since I switch between several versions of grails (1.3.7, 1.3.9, 2.0.4 and 2.1.0), I handle it by manipulating GRAILS_HOME.  This works well, but it's cumbersome (hence my interest in the project).  So, it would appear that somehow the grails bootstrapping is determining what to use for JAVA_HOME and getting around my lack of JAVA_HOME in some fashion.  Maybe it's worth looking at their code for inspiration?

L


If you reply to this email, your message will be added to the discussion below:
http://gvm-dev.1086105.n5.nabble.com/OSX-10-7-5-Testing-tp2p4.html
To unsubscribe from OSX 10.7.5 Testing, click here.
NAML
---
Marco Vermeulen
Reply | Threaded
Open this post in threaded view
|

Re: OSX 10.7.5 Testing

OldTroll
While looking at this I found a little snippet that might be useful.

export JAVA_HOME=$(/usr/libexec/java_home)

On an OSX system that should set the environment variable correctly (at least for the preconfigured Java SDKs).  I'm not certain how the script operates but it might be a nice feature to set it automatically if needed.  
Reply | Threaded
Open this post in threaded view
|

Re: OSX 10.7.5 Testing

panpan2523
In reply to this post by marco.vermeulen
Founded in 1847 by Frenchman Louis-Francois Cartier, Cartier's grandsons, Louis, Pierre and Jacques helped lead and propel the name http://mycartieronline.com/Cartier-Earrings-category-6.html buy cartier  to its current worldwide status. In 1904, due to a Brazilian aviator's complaint's pertaining to, at that time, traditional pocket watches, Cartier created the first, flat wrist bezel watch, unique in design, prestigious in quality.