Open foris Collect and Calc on Mac OSX Lion

  • Asked
  • Active
  • Viewed 30560 times
0

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

0

Accepted answer

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

0

Accepted answer

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

0

Accepted answer

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

0

Accepted answer

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

0

Accepted answer

I found a solution to the error. It is a timeout error. Everything works when you refresh the browser.

Regards, Wesley

0

Accepted answer

Ok! good to know!

Thank you for reporting it , Mino

0

Accepted answer

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

0

Accepted answer

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

0

Accepted answer

You can add JAVA_HOME to the file ~/.bash_profile

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/

Mino

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

jwesroberts jwesroberts

Dear Wesley,

My comments here:

  1. Why did you enabled that in Chrome? i don't think it's necessary.

  2. Yes, in the installer the password is automatically changed.

  3. in what exactly was it helpful? i don't think it's necessary neither.

Thank you for testing the manual installation on Mac.

Mino

Mino Togna Mino Togna ♦♦
0

Accepted answer

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

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.