Re: [greenstone-users] GS3 build failure on OSX

From Katherine Don
DateFri, 06 Jan 2006 11:51:43 +1300
Subject Re: [greenstone-users] GS3 build failure on OSX
In-Reply-To (93CC6419-FF7B-4385-8173-F9B3B7D4A89B-jstor-org)
Hi Matt

It appears from a quick search on Google that the first error (bootstrap
register failed, failed to name Mach port...) should be harmless.

The second error (can't connect to mysql) is because mysql didn't start
up properly. Maybe the first error caused it not to start up, or you
already have another mysql running, or the port number is already in use
or some other reason.
You can check using e.g. 'top' to see if mysql is running.

Check the log file in packages/mysql/var/log, this may give you some info.
If its the port number that is a problem, you can change it in
build.properties (mysql.port)
You can try running mysql by itself.
To start up the server, change to packages/mysql directory and run

./bin/mysqld_safe --datadir=./data --basedir=. --pid_file=gsdl3.pid
--socket=/tmp/mysql.sock --port=3306 --err-log=./var/log/mysql.log

(You can see what commands are run by looking at the build.xml file)
Does it start up without errors?

If you can't get it working, you could try installing mysql independent
of greenstone. See the README (using external mysql section) for
details. you don't need mysql except for native greenstone3 collections.
see collection building section in the manual for more details about that.

You can install greenstone without mysql. Edit the build.xml file, look
for the install target (at the end) and remove the configure-mysql
target from the list in the depends attribute. Then run 'ant install'
and hopefully it will work. You can test greenstone etc and it should
all work apart from the gs3mgdemo collection which uses mysql.

I hope this helps,
Regards,
Katherine

PS Greenstone 3 queries should be sent to the greenstone 3 mailing list

greenstone3@list.scms.waikato.ac.nz
https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone3

mstoef wrote:
> My build on OSX is failing. I've installed gdbm, don't have GS2,mysql,
> or tomcat installed. Here's output (below) from the intall script.
>
> Can someone explain what's not right here?
>
> thanks.
>
> Matt Stoeffler.
>
>
>
> start-mysql:
> [echo] Starting up the mysql server
>
> get-mysql-root-password:
> [echo] Enter password in the Java popup. (If you do not have a
> window server running, please set the mysql.root.password in the
> build.properties file.)
> 2006-01-04 12:31:36.993 java[2064] CFLog (0): CFMessagePort:
> bootstrap_register(): failed 1103 (0x44f), port = 0x15203, name =
> 'java.ServiceProvider'
> See /usr/include/servers/bootstrap_defs.h for the error codes.
> 2006-01-04 12:31:37.046 java[2064] CFLog (99):
> CFMessagePortCreateLocal(): failed to name Mach port
> (java.ServiceProvider)
>
> get-mysql-reader-password:
> [echo] Enter password in the Java popup. (If you do not have a
> window server running, please set the mysql.reader.password in the
> build.properties file.)
>
> get-mysql-admin-password:
> [echo] Enter password in the Java popup. (If you do not have a
> window server running, please set the mysql.admin.password in the
> build.properties file.)
>
> set-mysql-account-passwords:
> [exec] ERROR 2002 (HY000): Can't connect to local MySQL server
> through socket '/tmp/mysql.sock' (2)
> [exec] Result: 1
>
> stop-mysql-use-password-unix:
> [echo] At the password prompt, enter the mysql root password.
> Enter password:
> [exec] /Users/admin/Desktop/greenstone-3.01-macOSX/greenstone3/
> packages/mysql/bin/mysqladmin: connect to server at 'localhost' failed
> [exec] error: 'Can't connect to local MySQL server through socket
> '/tmp/mysql.sock' (2)'
> [exec] Check that mysqld is running and that the socket: '/tmp/
> mysql.sock' exists!
>
> BUILD FAILED
> /Users/admin/Desktop/greenstone-3.01-macOSX/greenstone3/build.xml: 745:
> exec returned: 1
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>