Dear Colleagues, I would like to enquire about the possibility of running Open Foris Calc on a Mac running OSX Lion. I have an older version of Collect which seems to run okay but ideally I would like to run a more recent version (current version is 3.3.9). Are their plans for supporting Mac operating systems in the future? Many thanks and kind regards, Wesley asked 24 Apr '15, 08:19 jwesroberts |
Dear Wesley, At the moment neither Calc nor Collect have an available installer for Mac OSx. Collect is easier to run on Mac, you can just run the linux version. For Calc, there are more manual steps to perform because of its integration with R. Here you can find the instructions on how to install it: https://github.com/openforis/calc/blob/master/README-manual-installation. Yes, in the second part of the year we are planning to create installers for Mac OSx. Should you need any further assistance, please don't hesitate to contact me. Thank you, Mino answered 24 Apr '15, 09:04 Mino Togna ♦♦ |
Dear Mino, Many thanks for the speedy response. I will see how far I get with the installation and will call on you should I require any additional help. Regards, Wesley answered 24 Apr '15, 09:18 jwesroberts |
Dear Wesley No Problem. I'm happy to help. FYI My colleague is currently working on the Mac Os installer of OF Collect. Regards, Mino answered 24 Apr '15, 11:56 Mino Togna ♦♦ |
Hi Mino, I downloaded both Collect and Calc and have upgraded the collect server to the one referenced in your original post. I have run the new server using the sudo ./startup-linux.sh - The server starts but when I point my browser to http://localhost:8080/collect/index.htm and I login using admin credentials I get the following error. Any ideas? Error: Error #1502 I will revisit requirements to see if I have maybe installed an old version of a required dependancy. Regards, Wesley answered 24 Apr '15, 14:12 jwesroberts |
I found a solution to the error. It is a timeout error. Everything works when you refresh the browser. Regards, Wesley answered 26 Apr '15, 14:13 jwesroberts |
Ok! good to know! Thank you for reporting it , Mino answered 27 Apr '15, 06:55 Mino Togna ♦♦ |
Hi Mino, I have managed to get Collect to work on my local machine but am having trouble with Calc. I have installed the software referenced in the github link you shared with me earlier. I believe that all of the software is up to date but Java may be the problem. I have installed jdk-7u79-macosx-x64.dmg which installs into my ...../JavaVirtualMachines/jdk1.7.0_79.jdk however, when I run java -version I get the following output which appears to be an earlier version. JanaPatina:Java Wesley$ java -version java version "1.6.0_33" Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11E53) Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode) If I run the startup.sh script in the server-calc directory I get the following output JanaPatina:calc-server Wesley$ ./startup.sh Starting Open Foris Calc Tomcat Using CATALINA_BASE: /Users/Wesley/Documents/work/FAO/OpenForis/Calc/calc-server/tomcat Using CATALINA_HOME: /Users/Wesley/Documents/work/FAO/OpenForis/Calc/calc-server/tomcat Using CATALINA_TMPDIR: /Users/Wesley/Documents/work/FAO/OpenForis/Calc/calc-server/tomcat/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/Wesley/Documents/work/FAO/OpenForis/Calc/calc-server/tomcat/bin/bootstrap.jar:/Users/Wesley/Documents/work/FAO/OpenForis/Calc/calc-server/tomcat/bin/tomcat-juli.jar All appears well yet when I then head to http://localhost:8081/calc I get nothing, there are no errors no timeouts just a blank page. There were also no install wizards running. What additional tests can I run to debug the problem? Many thanks, Wesley answered 11 May '15, 11:14 jwesroberts |
Dear Wesley, as i mentioned in a previous response, Calc doesn't have an installer for Mac Os yet. So, if you wish to install Calc on Mac, you need some manual configuration. You can find instructions here: https://github.com/openforis/calc/blob/master/README-manual-installation under the section Mac Os X Make sure you follow the instructions (install R, R required packages, JDK, set JAVA_HOME and R_HOME env variables) Please let me know if something is not clear there, instructions could be updated. Hope this helps. Kind Regards, Mino answered 11 May '15, 11:31 Mino Togna ♦♦ |
You can add JAVA_HOME to the file ~/.bash_profile export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/ Mino answered 11 May '15, 11:40 Mino Togna ♦♦ Hi Mino, I have managed to get calc running. A couple of changes have now solved my issues. 1. Enabled NPAP in chrome 2. In calc.xml changed the password for postgres user to postgres, it was ADMIN_USER 3. Enabled logging by updaing logging.properties with the following (SEVERE: Error ListenerStart) org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = java.util.logging.ConsoleHandler Not sure why updated logging would help but after I added this line it works. Many thanks for your help and patience, Wesley
(14 May '15, 16:06)
jwesroberts
Dear Wesley, My comments here:
Thank you for testing the manual installation on Mac. Mino
(18 May '15, 07:11)
Mino Togna ♦♦
|
Hi Mino, To answer your questions, I am trouble shooting as best I can. I have followed the instructions on the manual installation and have all of the software installed and ready to go. I recently found the logs and have been using those to investigate where the installation and operation may be having trouble. The NPAP and logging adjustments were "experiments" so to speak based on what I read on the internet. In the end I believe that the postgre password was the major stumbling block as calc now runs. Unfortunately, calc now hangs when I try and an R script so I presume my R installation is not correctly configured. I have installed R and setup the RHOME environment variable in /etc/launchd.conf. I have also installed all the libraries required as specified on the github page yet, when I try and run through the tutorial and attempt to calculate the Sampling unit weight the application hangs when running the R script (Pg 24 of Tutorial). I then shutdown the tab running calc, shutdown the server and restart and calc then hangs. My only fix is to delete the whole server folder and start again. From the windows based tutorials I know that the R path must be specified during installation and that there cant be any whitespaces in the path. I presume the RHOME environmental variable takes care of the path to R and lets java and calc know where to find the applications and libraries. I will have another look at setting up the tutorial (atlantis data) as perhaps I made an error with some of the inputs. Will let you know if I don't have any luck. Regards, Wesley answered 19 May '15, 09:24 jwesroberts |