Brad Joyce | 2 Nov 2000 22:16
Picon

Need help with installation

Hi,
I am very interested in Koha and wish to install and use it and hopefuly in the fullness of time contribute to the end product.  However, at the moment I am a newbie to installing perl modules and would welcome any help to getting the circulation telnet program working.  I get the error cant find cdk.pm.  I have the koha and opac web server side of things working and I've installed and created the tables etc needed in MySQL. this cdk problem looks like its the last hurdle.
 
Thanks in advance
 
Brad Joyce
 
Simon Blake | 2 Nov 2000 07:46
Picon
Favicon

Re: Need help with installation

Hi Brad

On Thu, Nov 02, 2000 at 01:16:59PM -0800, Brad Joyce said:

> I am very interested in Koha and wish to install and use it and hopefuly 
> in the fullness of time contribute to the end product.  However, at the
> moment I am a newbie to installing perl modules and would welcome any help
> to getting the circulation telnet program working.  I get the error cant
> find cdk.pm.  

Certainly sounds like CDK isn't installed properly.  Have you installed the
CDK C library?  The CDK perl module requires the CDK C library to be
installed first.  I'd suggest running through the compilation from the
start, and let us know what errors you get.

CDK libraries are at: http://www.vexus.ca/CDK.html, or more strictly
http://www.vexus.ca/release/  

I've just observed that there's a new version available - we've not tried
this out, but doubtless will when Chris gets back next week.  According to
the release notes, nothing's changed :-), so I imagine it'll work OK.

> I have the koha and opac web server side of things working and
> I've installed and created the tables etc needed in MySQL. this cdk problem
> looks like its the last hurdle.

Well done!

Cheers
Si

--

-- 
Simon Blake                                             simon@... 
Katipo Communications                                       +64 25 300 825

Brad Joyce | 6 Nov 2000 16:48
Picon

Fw: Installing Cdk perl Module

----- Original Message -----
From: "Brad Joyce" <bradj@...>
To: <koha@...>
Sent: Sunday, November 05, 2000 2:04 PM
Subject: Installing Cdk perl Module

> Hi
>
> Thank you Simon for your reply, you may like to pass this on to Chris but
if
> you can help it would be great.  I have tired several things with perl in
an
> attempt to getting Cdk installed.  I have obviously made a hash of things
> and am stongly contemplating reinstalling perl all over.
>
> I have installed the Cdk library to /usr/local/includes/cdk.
> When I first tried to install cdk I did not know, and I am still not sure,
> where several of the loacations and programs that the dk README files
refer
> to are. Those being:-
> - The cursers directroy
> - The header files
> - The configuration file for perl to point perl to the above,  The README
> refers to a configuration program in the perl home irectory I don't know
> where that is.  I have a RedHat 6.1 server and I am guessing that the perl
> home is at /usr/lib/perl5/site-perl/5.005/i386-linux.  Even if this is
> correct there is no file named configuration so I can't configure perl.
>
> I gave up on that approch and in my way through this discovered that you
can
> use CPAN.
> I have tried the following.
>
> perl -MCPAN -e shell
> >install Cdk
>
> It asked me a few questions like where is make and I answered them
correctly
> (I think).
>
> It goes and finds a ftp site and down loads and looks great up untill it
> comes up with an error something like
>
> bad make /usr/bin/make
>
> and bombs out.  The make file is at usr/bin/make so I am now stuck.
>
> Please help  beg beg grovel!!!
>
> Brad
>
>
>
>
>
>
>
>

Brad Joyce | 6 Nov 2000 20:51
Picon

Test

Just a test

Brad Joyce | 6 Nov 2000 20:55
Picon

make error

Hi Chris

Hope this dosn't hurt too much,
Where did you go ?

the make error is:

make: *** [cdk.o] error 1
    /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
----- Original Message -----
From: "Chris Cormack" <chris@...>
To: "Brad Joyce" <bradj@...>
Sent: Sunday, November 05, 2000 3:26 PM
Subject: Re: [Koha] Fw: Installing Cdk perl Module

> Hi Brad
>
> Ive just got back from my vacation, and am still kinda out of it with
jetlag
> and general lack of sleep.
> Ill try and write up some nice cdk install instructions for you.
>
> In the meantime, whats the error that make gives you? Something about not
> finding the C cdk files?
>
> Chris
>
> --
> Chris Cormack                                  Katipo Communications
> Programmer/Sys Admin                           chris@...
> 025 500 789                                    www.katipo.co.nz
>
>

Simon Blake | 6 Nov 2000 02:19
Picon
Favicon

Re: make error

Hi Brad

Simple question - do you have a /usr/bin/make ?  If not, you might have to
install GNU make - should be a standard .rpm on your CD

Cheers
Si

On Mon, Nov 06, 2000 at 11:55:36AM -0800, Brad Joyce said:
> Hi Chris
> 
> Hope this dosn't hurt too much,
> Where did you go ?
> 
> the make error is:
> 
> make: *** [cdk.o] error 1
>     /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
> ----- Original Message -----
> From: "Chris Cormack" <chris@...>
> To: "Brad Joyce" <bradj@...>
> Sent: Sunday, November 05, 2000 3:26 PM
> Subject: Re: [Koha] Fw: Installing Cdk perl Module
> 
> 
> > Hi Brad
> >
> > Ive just got back from my vacation, and am still kinda out of it with
> jetlag
> > and general lack of sleep.
> > Ill try and write up some nice cdk install instructions for you.
> >
> > In the meantime, whats the error that make gives you? Something about not
> > finding the C cdk files?
> >
> > Chris
> >
> > --
> > Chris Cormack                                  Katipo Communications
> > Programmer/Sys Admin                           chris@...
> > 025 500 789                                    www.katipo.co.nz
> >
> >
> 
> 
> 
> _______________________________________________
> Koha mailing list
> Koha@...
> http://lists.katipo.co.nz/mailman/listinfo/koha

--

-- 
Simon Blake                                             simon@... 
Katipo Communications                                       +64 25 300 825

Simon Blake | 6 Nov 2000 02:33
Picon
Favicon

Re: Need help with installation

Hi Brad

On Mon, Nov 06, 2000 at 06:36:45AM -0800, Brad Joyce said:
> Hi Simon,
> 
> Thank you for your reply, you may like to pass this on to Chris but if you
> can help it would be great.  I have tired several things with perl in an
> attempt to getting Cdk installed.  I have obviously made a hash of things
> and am stongly contemplating reisntalling perl all over.

It sounds to me like you haven't got CDK library installed yet, so no amount
of messing with perl will get things working for you.

> I have installed the Cdk library to /usr/local/includes/cdk

Made and installed?  or just extracted the tgz file?

> When I first tried to install cdk I did not know and still not sure, where
> several of the loacations and programs that the cdk README file refers to
> are. Those being
> - The cursers directroy
> - The header files

These will come with your OS - there's likely an ncurses development .rpm
that you'll need to install, before CDK can be built.  (sorry, I can't be
more specific, I don't know enough about Redhat to be able to tell you the
name of the file).

> - The configuration file for perl to point perl to these,  The README refers
> to a configuration program in the perl home directory I don't know where
> that is.  I have a RedHat 6.1 server and I am guessing that the perl home is
> at /usr/lib/perl5/site-perl/5.005/i386-linux.  Even if this is correct there
> is no file named configuration so I can't configure perl.
> 
> I gave up on that approch and in my way through this discovered that you can
> use CPAN
> I have tried the following.
> perl -MCPAN -e shell
> >install Cdk

There is no way at all that the CPAN install will work if the manual one
doesn't, since CPAN installations just run the manual installers for you.
There's also no chance that the perl module will work until you've got the
CDK C library installed properly - there's no point doing anything with perl
until you've got to the stage where the demos that come with the CDK C
library work.

Paste in the actual errors you get compiling the CDK C library, and
we'll likely going to be able to give more succinct help.

Cheers
Si

-- 
Simon Blake                                             simon@... 
Katipo Communications                                       +64 25 300 825

----- End forwarded message -----

-- 
Simon Blake                                             simon@... 
Katipo Communications                                       +64 25 300 825

----- End forwarded message -----

--

-- 
Simon Blake                                             simon@... 
Katipo Communications                                       +64 25 300 825

Simon Blake | 6 Nov 2000 05:31
Picon
Favicon

Re: ReInstalling CDK 2nd time

Hi Brad

On Mon, Nov 06, 2000 at 02:13:08PM +1100, Brad Joyce said:
> I've downloaded cdk.tar.gz
> tar -zxvf cdk.tar.gz
> extracted to /root/tar-4.3.10
> read README
> cd tar-4.3.10
> ./configure
> make
> make install
> The README then says to start playing
> 
> What do I do next??

Well, start playing :-).  I'd suggest going into /root/cdk-4.3.10/examples,
running a make, and checking that the make works, and the ensuing
executables do interesting CDK'ish types of things.  (draw menus, text
widgets, and whatnot)

Once that's going, unpack the cdk-perl stuff (into a clean directory, perhaps)

run:

perl Makefile.PL
make

if you get an error, let us know what it is.  Errors I have seen involve not
finding the  CDK .h files, you fix that by editing the Makefile and changing

INC = -I/usr/include/ncurses -I/home/glover/local/include/cdk

to something like:

INC = -I/usr/include/ncurses -I/usr/local/include/cdk

around line 95, as I recall

if you get a build, run 

make install

and you should be away.  To test it, go to the demo directory, and do a 

perl fulldemo

and see if it works.  If it does, you're underway

Cheers
Si

--

-- 
Simon Blake                                             simon@... 
Katipo Communications                                       +64 25 300 825

Simon Blake | 6 Nov 2000 06:33
Picon
Favicon

Re: Re: ReInstalling CDK 2nd time

On Mon, Nov 06, 2000 at 04:22:02PM -0800, Brad Joyce said:
> [root@... Cdk]# make
> cc -c -I/usr/include/ncurses -I/home/glover/local/include/cdk -Dbool=char -D
> HAS_
> BOOL -I/usr/local/include -O2    -DVERSION=\"4.9.6\" -DXS_VERSION=\"4.9.6\" 
> -fpi
> c -I/usr/lib/perl5/5.00503/i386-linux/CORE -DHAVE_USLEEP -DHAVE_NCURSES -DHA
> VE_C
> OLOR -DCDK_PERL_EXT Cdk.c
> Cdk.xs:5: cdk.h: No such file or directory
> make: *** [Cdk.o] Error 1
> [root@... Cdk]#
> 
> > INC = -I/usr/include/ncurses -I/home/glover/local/include/cdk
> >
> > to something like:
> >
> > INC = -I/usr/include/ncurses -I/usr/local/include/cdk
> 
> I tried this but same problem as above
> 
> >
> > around line 95, as I recall
> 
> I must have the wrong Makefile.PL
> mine is nowhere near that long.

Doh, sorry, edit the Makefile , not the Makefile.PL  (the Makefile is
generated by the 'perl Makefile.PL' run - you can edit it and then run make.

Cheers
Si

--

-- 
Simon Blake                                             simon@... 
Katipo Communications                                       +64 25 300 825

Simon Blake | 6 Nov 2000 09:00
Picon
Favicon

Re: Re: ReInstalling CDK 2nd time

On Mon, Nov 06, 2000 at 06:38:14PM -0800, Brad Joyce said:
>  It works sort of.

Yay :-)

> I got a lot of kernal dump messages that I had to Ctrl C out of  but the
> fulldemo works well on a good telnet emulator.  The windows 98 telnet sucks.
> What telnet package are you using?

SecureCRT, if you want to shell out the $, or teraterm-SSH if you don't

> I tried to run circ but no joy there.  I probably need to install more perl
> modules.   The cursor just vanishes.  Ctrl C brings it back.

Sounds like telnet client weirdness.  Give Teraterm a go:
http://www.zip.com.au/~roca/ttssh.html

Cheers
Si

--

-- 
Simon Blake                                             simon@... 
Katipo Communications                                       +64 25 300 825


Gmane