Forums › Forums › OroPlatform › OroPlatform – Installation/Technical Issues or Problems › Oroplatform installation failed because of JRE
This topic contains 9 replies, has 2 voices, and was last updated by Jaimy 10 years, 4 months ago.
Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
- CreatorTopic
- November 22, 2013 at 7:59 am #34777
Hi fellow oro’ers,
I recently updated the platform from beta2 to beta3 and I’ve some issues with the installation. Apparently Oro needs the JRE installed for beta3 and it’s giving me a hard time.
Since I’m developing on a iMac I know there are some issues between OSX and Java. My iMac has the JRE installed, but the oro installer doesn’t recognize it. Does anyone know how to solve this?
The setup is:
iMac + MAMP + ORO-platform
I’ve tried a workaround but then I can’t login :<Here are some images of the terminal and the oro installer.
Kind Regards,
Jaimy
- CreatorTopic
- AuthorReplies
- November 26, 2013 at 2:18 am #34778
UPDATE: I’ve figured out what the problem was/is.
I has it’s origin in MAMP. MAMP uses the/Applications/MAMP/Library/bin/envvars
to export theDYLD_LIBRARY_PATH
This will generate a nasty problem/bug when trying to get rid of the “JRE not installed” error in ORO-CRM/Platform. So here are a few steps you can take to get rid of it:1. Go to
/Applications/MAMP/Library/bin
2. vi(m), nano or somethingenvvars
3. Comment out all the lines which are in that file
4. Save your changes
5. Restart your MAMP (pro).Since this is not the best way to get rid of it, I’ve read something about unsetting your
DYLD_LIBRARY_PATH
Discussion about DYLD_LIBRARY_PATH
Other Discussion about DYLD_LIBRARY_PATHNovember 26, 2013 at 2:59 am #34779Hello,
I’m using Mac OSX ML, apache(that was installed out of the box), and installed php, mysql etc via homebrew and I have not any problem with installation. It’s weird that MAMP has different envvars file,
/usr/sbin/envvars
only exists on my mac…BTW can you provide output of
java -version
withDYLD_LIBRARY_PATH
and without it? It could help us to improve JRE check conditionThanks!
November 26, 2013 at 4:48 am #34780Hi asmaga,
As I see from your installation you’ve installed php, mysql via homebrew. I did not, I’m starting to think that would have been a better way to start developing with ORO ;).
The output of java -version is as followed:
iMac-1337:~ jaimy$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)I’m not sure what I should see with java -version DYLD_LIBRARY_PATH but it shows no additional information at all :<.
iMac-1337:~ jaimy$ java -version DYLD_LIBRARY_PATH
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)If I do an echo of $DYLD_LIBRARY_PATH this is what happens:
123iMac-1337:~ jaimy$ echo $DYLD_LIBRARY_PATHNope that’s not an empty row I forgot to remove, the $DYLD_LIBRARY_PATH is empty unfortunately :<. If have figured out that I’m using Mac OSX 10.8.6 (which should be ML according to google :P)
It turns out that MAMP PRO in this case, is a pain in the *** if it comes to developing with ORO, the installation turned out to be a hell of a ride. The best installations where from Alpha 5 and Beta1/2 :)I hope this information is useful, not sure if I did the correct thing you’ve asked :)
Kind Regards,
Jaimy
November 26, 2013 at 7:20 am #34781No :)
I meant remove added to
/Applications/MAMP/Library/bin/envvars
DYLD_LIBRARY_PATH value and show the output. I want to see the output that provoked
“JRE not installed” messageNovember 26, 2013 at 9:22 am #34782Hi Asmaga,
So if I understand correctly, you want me to remove the “uncommenting lines” and go the oro installer once more. And then I will echo the output of the error in the browser? Or should I output the DYLD_LIBRARY_PATH in the terminal? No sure if I follow your suggestion “I meant remove added to
/Applications/MAMP/Library/bin/envvars
DYLD_LIBRARY_PATH value and show the output.”Kind Regards,
Jaimy Casteleijn
November 26, 2013 at 1:54 pm #34783Sorry for misunderstandings, in Oro installer we check is java installed by running command
1java -versionand parse it’s output then. So my suggestion is to reproduce your error by reverting changes in envvars, and give us the output of
java -version
. Do you see what I mean?November 27, 2013 at 2:56 am #34784Hi Asmaga,
Yes, this is a clear instruction :P. Sorry for the misunderstanding.
So the output of java -version with the reverted changes is as followed:
1234iMac-1337:oro-platform jaimy$ java -versionjava version "1.6.0_65"Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)Well that was not much helpful, but I did manage to reproduce the error, since this only happens on install with reverted changes, I had to do another install of ORO.
The Debug information I’ve gathered is below, this is the output (in browser) of var_dump($jreExists). This variable in /app/OroRequirements.php represents the process which is initialized on line 22 of /app/OroRequirements.php.
Hopefully this information will be more useful than the output of java -version in terminal123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103object(Symfony\Component\Process\Process)#40 (22) {["callback":"Symfony\Component\Process\Process":private]=>object(Closure)#39 (3) {["static"]=>array(4) {["that"]=>*RECURSION*["callback"]=>NULL["out"]=>string(3) "out"["err"]=>string(3) "err"}["this"]=>*RECURSION*["parameter"]=>array(2) {["$type"]=>string(10) ""["$data"]=>string(10) ""}}["commandline":"Symfony\Component\Process\Process":private]=>string(17) "'java' '-version'"["cwd":"Symfony\Component\Process\Process":private]=>string(42) "/Users/jaimy/Development/oro-crm-beta4/web"["env":"Symfony\Component\Process\Process":private]=>NULL["stdin":"Symfony\Component\Process\Process":private]=>NULL["starttime":"Symfony\Component\Process\Process":private]=>float(1385545765.57)["timeout":"Symfony\Component\Process\Process":private]=>float(60)["options":"Symfony\Component\Process\Process":private]=>array(2) {["suppress_errors"]=>bool(true)["binary_pipes"]=>bool(true)}["exitcode":"Symfony\Component\Process\Process":private]=>int(1)["fallbackExitcode":"Symfony\Component\Process\Process":private]=>NULL["processInformation":"Symfony\Component\Process\Process":private]=>array(8) {["command"]=>string(17) "'java' '-version'"["pid"]=>int(5896)["running"]=>bool(false)["signaled"]=>bool(false)["stopped"]=>bool(false)["exitcode"]=>int(1)["termsig"]=>int(0)["stopsig"]=>int(0)}["stdout":"Symfony\Component\Process\Process":private]=>string(89) "Error occurred during initialization of VMUnable to load native library: libjava.jnilib"["stderr":"Symfony\Component\Process\Process":private]=>NULL["enhanceWindowsCompatibility":"Symfony\Component\Process\Process":private]=>bool(true)["enhanceSigchildCompatibility":"Symfony\Component\Process\Process":private]=>bool(false)["process":"Symfony\Component\Process\Process":private]=>resource(28) of type (Unknown)["status":"Symfony\Component\Process\Process":private]=>string(10) "terminated"["incrementalOutputOffset":"Symfony\Component\Process\Process":private]=>int(0)["incrementalErrorOutputOffset":"Symfony\Component\Process\Process":private]=>int(0)["tty":"Symfony\Component\Process\Process":private]=>NULL["useFileHandles":"Symfony\Component\Process\Process":private]=>bool(false)["processPipes":"Symfony\Component\Process\Process":private]=>object(Symfony\Component\Process\ProcessPipes)#41 (4) {["pipes"]=>array(0) {}["fileHandles":"Symfony\Component\Process\ProcessPipes":private]=>array(0) {}["readBytes":"Symfony\Component\Process\ProcessPipes":private]=>array(0) {}["useFiles":"Symfony\Component\Process\ProcessPipes":private]=>bool(false)}}As shown above, the error is [“stdout”:”Symfony\Component\Process\Process”:private]=>
string(89) “Error occurred during initialization of VM Unable to load native library: libjava.jnilib”. After some google-ing I’ve found that MAMP has it’s own envvars which where loaded in /Applications/MAMP/Library/bin/envvars.Hopefully this will help you to understand or improve the JRE check in the ORO-installer, since I sincerely do not understand why MAMP is such a pain in the ***.
Kind Regards,
Jaimy Casteleijn
November 27, 2013 at 12:58 pm #34785Hi Jaimy,
Thanks a lot for your help, but it seems that we are powerless in this case, because anyway if MAMP aren’t able to run java correctly then install will failed in “assetics” step even if check’ll passed.
So just hope that our discussion will be helpfull to someone how’ll get the same error..
Best regards.
November 28, 2013 at 12:31 am #34786Hi Asmaga,
Thanks for your help! It looks like this is an overhead case, using this setup. I’m trying to figure out whether I should continue with this setup or change the complete setup since I’m running to problems with every release of ORO.
I hope this information that we have shared will help other people who are running into the same problems. For now I don’t think there is a general solution for this specific setup.
I wish you all the best regarding the future releases of ORO and hopefully I can enjoy the power and flexibility of ORO as well with this setup.
Kind Regards,
Jaimy Casteleijn
- AuthorReplies
The forum ‘OroPlatform – Installation/Technical Issues or Problems’ is closed to new topics and replies.