[Koha] Incomplete MacOS Koha installation tips...

adam steer adam at adstereo.net
Fri Apr 29 11:27:26 NZST 2005


Hi all

Due to university commitments, I haven't been able to make good my 
efforts to document koha installation for MacOS 10. For those 
interested, below is a list of the commands I typed to get Koha 
installed.

*note* updates to Koha and/or MacOS might have made the task easier. 
Further, your MacOS might not be the same as my MacOS. Please use this 
as a guide only - not an authoritative document. Hoepfully it is 
useful, and if nothing else, will serve to highlight any mistakes I 
made :-)

Cheers

Adam.


MacOS 10.3.7 Koha install
------------------------------------
note: lines beginning with '>' or '#' are commands. Everything else is 
either output or notes. Lines starting with '#' indicate root or super 
user privileges.

 > sudo bash
[run bash with super user rights - meaning everything you type is done 
with raised permissions. Be careful - or use root, or type 'sudo' 
before each command....]

# cd [sourcedir]
[insert your Koha source directory above]

# perl installer.pl
[yes to everything]

..told me that I needed to do:
--------------------------------------
perl -MCPAN -e 'install Net::Z3950'

perl -MCPAN -e 'install "Date::Manip"'

perl -MCPAN -e 'install "DBD::mysql"'

perl -MCPAN -e 'install "HTML::Template"'

perl -MCPAN -e 'install "MARC::Record"'

perl -MCPAN -e 'install "Mail::Sendmail"'

perl -MCPAN -e 'install "PDF::API2"'

perl -MCPAN -e 'install "Net::LDAP"'

perl -MCPAN -e 'install "Event"'

perl -MCPAN -e 'install "Net::Z3950"'
--------------------------------------

sudo wasn't enough permission, so I did:

# su -l root
[now I've switched my login shell to root. Exercise extra caution]

# perl -MCPAN -e 'install "Date::Manip"'
[which failed]

# perl -MCPAN -e 'install "DBD::mysql"'
[failed again]

# perl -MCPAN -e 'install "HTML::Template"'
[OK]

# perl -MCPAN -e 'install "MARC::Record"'
[OK]

# perl -MCPAN -e 'install "Mail::Sendmail"'
[OK]

# perl -MCPAN -e 'install "PDF::API2"'
[OK, with prepended Compress::Zlib ]

# perl -MCPAN -e 'install "Net::LDAP"'

said:
- Convert::ASN1   ...missing. (would need 0.07)
- Authen::SASL    ...missing. (would need 2)
- URI::ldap       ...missing. (would need 1.1)
- IO::Socket::SSL ...missing. (would need 0.81)
- XML::SAX::Base  ...missing.

...so I installed all of the above, and ran:

# perl -MCPAN -e 'install "Net::LDAP"'

again. It failed, with the message:

Writing Makefile for Net::LDAP
make: *** No targets specified and no makefile found.  Stop.
   /usr/bin/make  -- NOT OK
Running make test
   Can't test without successful make
Running make install
   make had returned bad status, install seems impossible

I tried again, but said no to:

- IO::Socket::SSL ...missing. (would need 0.81)
==> Auto-install the 1 optional module(s) from CPAN? [n] n

..and it went OK.

# perl -MCPAN -e 'install "Event"'

...returned:

Failed 1/24 test scripts, 95.83% okay. 2/126 subtests failed, 98.41% 
okay.
make: *** [test_dynamic] Error 2
   /usr/bin/make test -- NOT OK
Running make install
   make test had returned bad status, won't install without force

# perl -MCPAN -e 'install "Net::Z3950"'

...grumbled about no YAZ. So, off to: http://indexdata.dk/yaz/, 
dowloaded binary, ./configure, make install. However:

# perl -MCPAN -e 'install "Net::Z3950"'

..still thinks YAZ is not installed - did I have to put YAZ somewhere 
unusual?

So I went back to back to Date::Manip and DBD::MySQL...

For Date::Manip:

# cpan

 > force install Date::Manip

....worked

Now for DBD::MySQL:

I downloaded from CPAN. Once you have the module, unzip it, find the 
file 'myld', and around line 12, change:
-------
my $retval = system @ARGV;
  to
my $retval = system "@ARGV";
-------

[thanks to the eprints2 people for this tip]

..and run:

# perl Makefile.PL --libs="`/usr/local/mysql/bin/mysql_config --libs`" 
--cflags="`/usr/local/mysql/bin/mysql_config --cflags`"
[note backticks]

# make

# make install.

Now, head ing back to the Koha source directory and doing:

# perl installer.pl

Installed Koha with no complaints, minus Net::Z3950. I'm not sure why 
YAZ wasn't picked up.

Finally, back out of root and your sudo'ed shell.


_______________________________________________
Koha mailing list
Koha at lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha




More information about the Koha mailing list