Forum Problems Installing LAMS: Re: installing lams problem in linux


 
Search: 

2: Re: installing lams problem in linux
In response to 1 05/05/07 01:50 AM
[ Reply | Forward ]
HI Ablet,

I think this might be due to the mysql root password not being correct?

Can you double check if the password you enter it is the right one?

$ mysql -u root -p
Enter password: (the password you enter here should be the same as you have in your lams.properties file)

If you see this after you enter your password:

--
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 90 to server version: 5.0.24a-standard

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>
--

Then that's the password to put in the lams.properties.

Thanks,

Ernie

Posted by Ernie Ghiglione

3: Re: Re: installing lams problem in linux
In response to 2 05/05/07 09:50 AM
[ Reply | Forward ]
Hi,Ernie!

Thanks for your reply. there is ohther problem as follows:

[root@localhost lams]# ant/bin/ant install
Buildfile: build.xml

install:

check-software:

check-jboss:
[echo] Checking for jboss-4.0.2 directory at /usr/java/jboss

confirm-jboss:

check-java-dir:
[echo] Checking for java 1.5 or 1.6 jvm at /usr/java/jdk1.5.0_11

confirm-java-dir:

confirm-javac:

check-mysql:
[echo] Checking for mysql 5.0.x is installed
[echo] /usr/local/mysql/bin/mysql Ver 14.12 Distrib 5.0.37, for pc-linux-gnu
(i686) using EditLine wrapper

confirm-mysql:
[echo] All required software has been installed, continuing with the install

configure-jboss:
[echo] Copying jboss-cache.jar and jgroups.jar from
/usr/java/jboss/server/all/lib to /usr/java/jboss/server/default/lib
[copy] Copying 1 file to /usr/java/jboss/server/default/lib
[copy] Copying 1 file to /usr/java/jboss/server/default/lib

build-database:
[echo] Creating and configuring database

create-database:
[echo] NOTE: IF YOU HAVE FORGOTTEN TO PUT YOUR MYSQL ROOT PASSWORD IN
lams.properties, YOU WILL BE PROMPTED TO ENTER THE ROOT PASSWORD HERE 7 TIMES
[echo] Mysql root password required to disable foreign key checks
Enter password:
[echo] Mysql root password required to drop existing lams database if exists
Enter password:
[echo] Mysql root password required to create lams database
Enter password:
[echo] Mysql root password required enable foreign key checks
Enter password:
[echo] Mysql root password required to create user
Enter password:
[echo] Mysql root password required to configure user privileges
Enter password:


insert-database:
[echo] Inserting tables into the database

BUILD FAILED
/var/www/lams/build.xml:39: The following error occurred while executing this
line:
/var/www/lams/build.xml:146: The following error occurred while executing this
line:
/var/www/lams/build.xml:194: Class Not Found: JDBC driver com.mysql.jdbc.Driver
could not be loaded

what the problem it was? where can i find the completly instruction of installing lams in linux and install package?

thanks!!

Posted by ablet wayit

4: Re: Re: Re: installing lams problem in linux
In response to 3 05/06/07 08:44 PM
[ Reply | Forward ]
Hi Ablet,

Did you copy the binary_package folder (output of untar) into /var/www? Note that although LAMS is a web application, it won't work straight away if you put it on a web folder.

The unix installer runs some scripts that create the database table and deploy the 'LAMS code' into the JBoss server to be run.

At any rate, can you run the following command in your /var/www/lams folder?

ls -laR ant/

and post the output of what you get here?

It seems for the error you post above:

> Class Not Found: JDBC driver com.mysql.jdbc.Driver


That the mysql driver is not in the ant/lib directory... so we want to check whether that's the case.

Thanks,

Ernie

Posted by Ernie Ghiglione

5: Re: Re: installing lams problem in linux
In response to 4 05/06/07 10:33 PM
[ Reply | Forward ]
Hi,Ernie:
Thanks for your reply.
when i typed ls -laR ant/,i can see the following informations:

[root@localhost lams]# ls -laR ant/
ant/:
总计 16
drwxr-xr-x 4 root root 4096 01-15 07:36 .
drwxr-xr-x 8 root root 4096 05-07 12:19 ..
drwxr-xr-x 2 root root 4096 01-18 11:46 bin
drwxr-xr-x 2 root root 4096 01-23 08:20 lib

ant/bin:
总计 40
drwxr-xr-x 2 root root 4096 01-18 11:46 .
drwxr-xr-x 4 root root 4096 01-15 07:36 ..
-rwxr-xr-x 1 root root 9725 01-15 07:32 ant
-rwxr-xr-x 1 root root 861 01-15 07:32 antRun
-rwxr-xr-x 1 root root 2199 01-15 07:32 antRun.pl
-rwxr-xr-x 1 root root 3200 01-15 07:32 complete-ant-cmd.pl
-rwxr-xr-x 1 root root 4422 01-15 07:32 runant.pl

ant/lib:
总计 1948
drwxr-xr-x 2 root root 4096 01-23 08:20 .
drwxr-xr-x 4 root root 4096 01-15 07:36 ..
-rw-r--r-- 1 root root 224277 01-23 08:20 ant-contrib-1.0b3.jar
-rw-r--r-- 1 root root 1289806 01-15 07:36 ant.jar
-rw-r--r-- 1 root root 11734 01-15 07:36 ant-launcher.jar
-rwxr-xr-x 1 root root 446464 01-15 07:36 mysql-connector-java-3.1.12-bin.jar

so ,how can i slove that problem?
thanks!

Posted by ablet wayit

6: Re: Re: Re: installing lams problem in linux
In response to 5 05/06/07 11:12 PM
[ Reply | Forward ]
Looks like the required library is in the right place... these commands will tell you where Ant is looking:

ant -diagnostics | grep ant.library.dir
ant -diagnostics | grep java.class.path

The first should say something like, '/var/www/lams/ant/lib' and the second should include mysql-connector-java-3.1.12-bin.jar somewhere.

Posted by Jun-Dir Liew

8: Re: Re: Re: Re: installing lams problem in linux
In response to 6 05/16/07 12:18 PM
[ Reply | Forward ]
Hi Jun-Dir

I have the very same problem that Ablet... I have done everything but I cant install LAMS 2.0

I executed ant -diagnostics | grep ant.library.dir and i got:
ant.library.dir : /usr/share/ant/lib

Also, I wrote: ant -diagnostics | grep java.class.path and this is the output:
java.class.path : /usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/java/jdk1.6.0_01/lib/tools.jar

I have CentOS 5, Apache/2.2.3 (CentOS), Mysql 5.0.22, JDK jdk1.6.0_01, Jboss 4.0.2.

I need help, Carla

Posted by Carla Segura

9: Re: Re: Re: Re: Re: installing lams problem in linux
In response to 8 05/16/07 07:44 PM
[ Reply | Forward ]
Hi Carla,

I think you're using the ant included with your OS, rather than the ant included with the lams package. That's OK, but it needs to know where to find the mysql jar.

One way to do this is to include it as an argument to ant, as Luke said:

ant -lib /path/to/lams/package/ant/lib install

Or, copy the mysql jar to /usr/share/java (as that seems to be where your copy of ant has its libraries):

cp /path/to/lams/package/ant/lib/mysql-connector-java-3.12-bin.jar /usr/share/java

Posted by Jun-Dir Liew

10: Re: Re: Re: Re: Re: installing lams problem in linux
In response to 8 05/17/07 01:01 AM
[ Reply | Forward ]
Carla,

The LAMS2.0.2 installer is available if you want to give this a go instead.

Thanks,

Ernie

Posted by Ernie Ghiglione

11: Re: Re: Re: Re: Re: Re: installing lams problem in linux
In response to 10 05/17/07 09:36 AM
[ Reply | Forward ]
Thank you, Jun-Dir and Ernie...

I decided to try the installer mentioned by Ernie and, everything goes perfect!

Thank you very much!
Krla

Posted by Carla Segura

7: Re: Re: Re: installing lams problem in linux
In response to 5 05/08/07 05:51 PM
[ Reply | Forward ]
You could try this command to make ant look directly for the JDBC library:

ant -lib (directory containing mysql-connector-java-3.1.12-bin.jar) install

Ie if you are in the root install package dir:

ant -lib ant/lib install

Posted by Luke Foxton

Reply to first post on this page
Back to Problems Installing LAMS