It appears to us that Koha2.0.0 works fine, except fine calulation as it need to be entered in crontab. Before entering in crontab, i tried it using ./fines2.pl, but it failed and gave following message:
Can't locate C4/Context.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at ./fines2.pl line 30. BEGIN failed--compilation aborted at ./fines2.pl line 30.
while this file was there at: /usr/local/koha/intranet/modules/C4/Context.pm Then I used following way to bring it in its path (I know it is wrong way, but I don't know right way, please help me here also.) ln -s /usr/local/koha/intranet/modules/C4 C4 On this, above mentioned error was eliminated, but it gave following error:
DBD::mysql::st execute failed: No Database Selected at /usr/lib/perl5/5.8.0/C4/Circulation/Fines.pm line 71. DBD::mysql::st fetchrow_hashref failed: fetch() without execute() at /usr/lib/perl5/5.8.0/C4/Circulation/Fines.pm line 75.
Please let me know the fault. Is my installation fine? What and where I need to change? Thanks in advance. -- H. S. Rai _____________________________________________________________________ http://www.grex.org/~hsrai | Alternate E-mail: hsraidce@iitr.ernet.in ___________________________|_________________________________________ : ####[ GNU/Linux One Stanza Tip (LOST) ]####################### Sub : Procmail recipe to split digests LOST #076 A procmail recipe to split digests from mailing lists into its component mails, would be as shown .. (This example is for LIH digests). In your .procmailrc (or /etc/procmailrc) add: :0: * (^To:.*|^Cc:.*)linux-india-help | formail +1 -ds >> $HOME/mail/LIH ####[rfowkar (at) yahoo.com]################################## :
Hi, On Sat, 2004-10-09 at 12:05, H S Rai wrote: <snipped>
/usr/local/koha/intranet/modules/C4/Context.pm
Then I used following way to bring it in its path (I know it is wrong way, but I don't know right way, please help me here also.)
Assuming that you are using the Bash shell, the "proper" technique is to use the following `export PERL5LIB="/usr/local/koha/intranet/modules"` before running the Koha command line scripts. cheers, -indranil -- ------------------------------------------------------------- Indranil Das Gupta, Project Lead, CASTLE Project [Computer Aided Studies, Teaching and Learning Environment] In collaboration with: West Bengal University of Technology Calcutta, INDIA www.wbut.net ------------------------------------------------------------- L2C2.ORG - Bringing Localized Low-Cost Computing to People -------------------------------------------------------------
On 2004-10-09 09:25:10 +0100 Indranil Das Gupta <indradg@icbic.com> wrote:
Assuming that you are using the Bash shell, the "proper" technique is to use the following `export PERL5LIB="/usr/local/koha/intranet/modules"` before running the Koha command line scripts.
I prefer to put -I/usr/local/koha/intranet/modules after "perl" and before the script name. -- MJR/slef My Opinion Only and not of any group I know Creative copyleft computing - http://www.ttllp.co.uk/ Speaking at ESF on Sat 16 Oct - http://www.affs.org.uk/
Monday at 10:42am +0100 MJ Ray wrote:
On 2004-10-09 09:25:10 +0100 Indranil Das Gupta wrote:
use the following `export PERL5LIB="/usr/local/koha/intranet/modules"` before running the Koha command line scripts.
I prefer to put -I/usr/local/koha/intranet/modules after "perl" and before the script name.
I put path in script file:
#!/usr/bin/perl -I/usr/local/koha/intranet/modules # This script loops through each overdue item, determines the fine, # and updates the total amount of fines due by each user. It relies
Now it ran fine one time, but on 2nd run it gave following error message: DBD::mysql::st execute failed: called with 2 bind variables when 1 are needed at /usr/local/koha/intranet/modules/C4/Circulation/Fines.pm line 156. DBD::mysql::st fetchrow_hashref failed: fetch() without execute() at /usr/local/koha/intranet/modules/C4/Circulation/Fines.pm line 157. May I know, what to change now. Thanks in advance. -- H. S. Rai _____________________________________________________________________ http://www.grex.org/~hsrai | Alternate E-mail: hsraidce@iitr.ernet.in ___________________________|_________________________________________ : ####[ GNU/Linux One Stanza Tip (LOST) ]####################### Sub : Commenting lines under vi (for scripts) LOST #256 To comment out multiple lines while writing scripts under vi (where # is the comment marker): :.,+N s/^/#/g (where N is number of lines to be commented after the current cursor location inclusive of current). ####[kumarayil (at) eth.net]################################## :
participants (3)
-
H S Rai -
Indranil Das Gupta -
MJ Ray