KonaKart Community Forum

Installation / Configuration => Installation of KonaKart => Topic started by: rcwhite on July 13, 2007, 05:43:38 am

Title: OS X?
Post by: rcwhite on July 13, 2007, 05:43:38 am
Can i run KonaKart from OS X? It doesn't seem like it, but since it says Unix supports KonaKart i was wondering?

If not, any possibility in the future?

thanks
Title: Re: OS X?
Post by: john on July 13, 2007, 08:09:38 am
Hi,

Although I've never tried, I don't know of any reason why KonaKart would not work on Mac OS X.

It's a standard J2EE app and so there shouldn't be a problem.

I'll be happy to help you get it working if you like.  Unfortunately I don't have OS X here so will just have to respond to your questions as best I can.

The installer that we use currently is "InstallJammer" which will soon support OS X but doesn't yet so you will have to use the manual zip installation and follow the installation FAQ at http://www.konakart.com/installationfaq.php.

How far have you got so far?

John
Title: Re: OS X?
Post by: rcwhite on July 14, 2007, 12:43:36 am
John,
   I completely forgot about the manual zip. I'll play around with it tonight or tomorrow, and report back.
Charlie
Title: Re: OS X?
Post by: Anni on November 02, 2007, 02:45:36 pm
hi,

I've also downloaded the zip-archive as I want to install this on a mac. however, I'm not really sure about the configuration stuff the installer would do ...

e.g. where do I have to specify the location of the java runtime, the db parameters and so on for konakart?

thanks  :)
Title: Re: OS X?
Post by: Brian on November 02, 2007, 03:19:41 pm
Hi Anni,

You should be successful with this as it's a pretty normal tomcat java application.   Therefore, look in the tomcat/bin for the startup scripts -

Specifically, for the case you mentioned:


$ more ./konakart/bin/setJavaHome.sh
#!/bin/sh
#
# Set the JRE_HOME for KonaKart here
#
# We unset JAVA_HOME to avoid using the wrong Java version.
#
# KonaKart needs java 5 at least
#

export JRE_HOME=/usr/java/jdk1.6.0/
export JAVA_HOME=



For the db parameters, there are two properties files called konakart.properties and konakartadmin.properties.  These are in the classes directories of their respective webapps, eg:



./konakart/webapps/konakart/WEB-INF/classes/konakart.properties
./konakart/webapps/konakartadmin/WEB-INF/classes/konakartadmin.properties



Check out the installation and configuration FAQs on our web site at:  http://www.konakart.com/installationfaq.php and http://www.konakart.com/configurationfaq.php

Good luck and let us know how you get on!
Regards,
Brian
Title: Re: OS X?
Post by: Anni on November 02, 2007, 03:33:18 pm
thanks for the answer. I'll have a look at these files then.

regards,
anni
Title: Re: OS X?
Post by: virtueed on November 07, 2007, 07:05:54 am
I'm actually developing on OS X using MySQL and the 2.2.0.7 zipped version. It works fine without any problem. Just remember to unzip using BOMArchiveHelper and not Stuffit. JAVA_HOME is setted automatically and startkonakart.sh works perfectly. Remember to modify manually the properties files of konakart and konakartadmin.

Ciao,
Mirko.
Title: Re: OS X?
Post by: john on November 07, 2007, 07:37:08 am
Hi Mirko,

That's good to hear and very useful feedback - thanks and good luck!

ciao,
John
Title: Re: OS X?
Post by: Anni on November 07, 2007, 12:11:28 pm
hi everyone,

I've got another question to this problem. I'm completely new to mac so I"m lost at the point where I want to start the startkonakart.sh. I tried renaming it to .command and running it with the teminal but it didn't really work. any suggestions?

thanks,

anni
Title: Re: OS X?
Post by: pete on November 07, 2007, 12:38:29 pm
Hi Anni,

You should be able to run that ok without changing the extension. 

When you open a terminal session and run that shell script what do you see?

Maybe a little bit of background on shell scripting could be helpful?  eg... I'm sure you could find 1000s of better ones on the Net but here's one:  http://www.noendpress.com/vroman/shellscripting/index.php

Regards,
Pete
Title: Re: OS X?
Post by: Anni on November 07, 2007, 01:47:20 pm
hi pete,

the terminal prints this but nothing else happens:
---------
Using CATALINA_BASE:   ./..
Using CATALINA_HOME:   ./..
Using CATALINA_TMPDIR: ./../temp
Using JRE_HOME:       /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
---------
did I miss something in regarad to tomcat? or does it have to look like this?

and what also might be of interest: I'm not yet trying this on the real server but test it locally. at the moment I just have an apache server running (but without tomcat).

cheers,
anni
Title: Re: OS X?
Post by: pete on November 07, 2007, 02:08:45 pm
Hi Anni,

If you'd followed through the scripts which you have in your bin directory you would have seen that you've reached catalina.sh. 

This is fine but now have a look at the logs directory to see if you can see anything in there (catalina.out is a likely candidate) that indicates to you what went wrong... or whether the application has actually started and you didn't realise.

Have you tried running the application from a browser after you've started it? i.e. using http://localhost:8780/konakart/

Regards,
Pete
Title: Re: OS X?
Post by: Anni on November 07, 2007, 02:20:28 pm
I've tried starting it but I just get a nice java exception. but according to the catalina.out file it seems to be a problem with the database. it says: "Unable to connect to the Database called oscommerce." That's right, because I'm using mysql ... do I have to change any of the "oscommerce" in the properties files?

mine looks like this at the moment:
------------
torque.database.default                                     = oscommerce

torque.database.oscommerce.adapter                   = mysql
torque.dsfactory.oscommerce.connection.driver     = com.mysql.jdbc.Driver
torque.dsfactory.oscommerce.connection.url          = jdbc:mysql://localhost:3306/konkart?zeroDateTimeBehavior=convertToNull
torque.dsfactory.oscommerce.connection.user        = user
torque.dsfactory.oscommerce.connection.password =

thanks,
anni
Title: Re: OS X?
Post by: pete on November 07, 2007, 02:28:13 pm
Hi Anni,

No, don't change that.

Instead, spend some time reading up on the installation and configuration FAQs.  They're relevant to OS X as well - just refer to the Linux/Unix notes.

http://www.konakart.com/faqs.php

If something isn't answered in those, get back to the forum.

Regards,
Pete
Title: Re: OS X?
Post by: Anni on November 07, 2007, 02:41:32 pm
hi,

I actually did that multiple times already and it didn't really help. :( as far as I know I've done everything that's in the faqs. I'm just lost at the moment.

regards,
anika
Title: Re: OS X?
Post by: pete on November 07, 2007, 02:51:41 pm
Hi Anika,

Your earlier post made me think you hadn't read the FAQs because in there is states:

"Leave the torque.database.default equal to oscommerce."


If I got "Unable to connect to the Database called oscommerce." I would look very closely at why KonaKart was unable to connect to the database.  There could be many reasons but one really obvious one is that the connection parameters are defined incorrectly.

Could you double-check the ones you've used?

Did you mean "konakart" for the database name perhaps?

Regards,
Pete



Title: Re: OS X?
Post by: Anni on November 07, 2007, 03:11:14 pm
hi,

thanks for your reply.
yeah, actually, that was the problem. but another thing, where can I change the port number manually?

thanks,
anni
Title: Re: OS X?
Post by: Brian on November 07, 2007, 03:20:46 pm
Hello Anni,

There are quite a few places.  Can I ask you why you actually want to do this at this stage?

Regards,
Brian
Title: Re: OS X?
Post by: Anni on November 07, 2007, 03:23:16 pm
hi,

it's just stupid why I want to change it now, but the port 8780 seems to be in use already and I have no idea what's running there so I can't shut down whatever it is. and the fact that I'm still too unfamiliar with mac doesn't help either ...  :-\

regards,
anni
Title: Re: OS X?
Post by: pete on November 07, 2007, 03:31:23 pm
Hi Anni,

Are you sure it isn't KonaKart running on that port?

Have you tried using netstat to find out?

http://developer.apple.com/DOCUMENTATION/Darwin/Reference/ManPages/man1/netstat.1.html

It would be quite a few files to change just because you can't find which process is using port 8780.

You could always reboot your machine and see if it's being used after that.

Regards,
Pete
Title: Re: OS X?
Post by: Anni on November 07, 2007, 03:46:19 pm
hi pete,

thanks for the help. I did a reboot and now it finally works  :)

regards,
anni