[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with upgrade



Usually install a package on CentOS like this:
# yum install libmath-bigint-gmp-perl

Got this response:
No package libmath-bigint-gmp-perl available.
Nothing to do

This article explains how to install Perl modules with yum (package manager for CentOS):
http://www.tnrglobal.com/blog/2008/12/easily-installing-perl-modules-with-yum/

Use this command:
# yum install "perl(Math::BigInt::GMP)"

This also produced the waring:
No package perl(Math::BigInt::GMP) available.
Nothing to do


Not sure what to do from here.

Thanks.
Brian

Activus Technologies
Brian Wolf
Phone: 410.367.2958
Email: ..hidden..
  • LedgerSMB Accounting Software Integrated with Amazon Marketplace
  • Integrated Payment Solutions
On 09/12/2013 03:56 PM, Erik Huelsmann wrote:

On Thu, Sep 12, 2013 at 9:42 PM, Brian Wolf <..hidden..> wrote:
I used apt-get to install libraries on ubuntu.  Worked great.
On CentOS 5.7 server, apt-get doesn't work.   I tried th approach below, but it was not successful:
Any idea what is missing?


Yea. By using apt-get on Ubuntu, you implicitly installed the GMP library (not a Perl library, but a general (binary) library). However, with the CPAN approach below, you're missing that. Better use the package manager for CentOS. I've never managed a CentOS system though, so I can't help you with the required commands for it.


Bye,


Erik.
 
Thanks.
Brian



[root@lsmb ~]# perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v2.00)
Enter 'h' for help.

cpan[1]> install Math::BigInt::GMP                                                                              
Reading '/root/.cpan/Metadata'
  Database was generated on Tue, 10 Sep 2013 00:09:39 GMT
Fetching with LWP:
ftp://cpan-du.viaverio.com/pub/CPAN/authors/01mailrc.txt.gz
Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with LWP:
ftp://cpan-du.viaverio.com/pub/CPAN/modules/02packages.details.txt.gz
Reading '/root/.cpan/sources/modules/02packages.details.txt.gz'
  Database was generated on Thu, 12 Sep 2013 12:08:09 GMT
............................................................................DONE
Fetching with LWP:
ftp://cpan-du.viaverio.com/pub/CPAN/modules/03modlist.data.gz
Reading '/root/.cpan/sources/modules/03modlist.data.gz'
............................................................................DONE
Writing /root/.cpan/Metadata
Running install for module 'Math::BigInt::GMP'
Running make for P/PJ/PJACKLAM/Math-BigInt-GMP-1.37.tar.gz
Checksum for /root/.cpan/sources/authors/id/P/PJ/PJACKLAM/Math-BigInt-GMP-1.37.tar.gz ok
Scanning cache /root/.cpan/build for sizes
.............................................................---------------DONE
DEL(1/4): /root/.cpan/build/Compress-Raw-Bzip2-2.055-sQB6Sd
DEL(2/4): /root/.cpan/build/Compress-Raw-Bzip2-2.055-sQB6Sd.yml
DEL(3/4): /root/.cpan/build/Compress-Raw-Zlib-2.056-0bCX3T
DEL(4/4): /root/.cpan/build/Compress-Raw-Zlib-2.056-0bCX3T.yml

  CPAN.pm: Building P/PJ/PJACKLAM/Math-BigInt-GMP-1.37.tar.gz

Use of uninitialized value in scalar assignment at /usr/lib/perl5/5.8.8/CPAN/Distribution.pm line 1868.
Use of uninitialized value in scalar assignment at /usr/lib/perl5/5.8.8/CPAN/Distribution.pm line 1869.
Use of uninitialized value in scalar assignment at /usr/lib/perl5/5.8.8/CPAN/Distribution.pm line 1879.
Use of uninitialized value in scalar assignment at /usr/lib/perl5/5.8.8/CPAN/Distribution.pm line 1880.
Can't link/include 'gmp.h', 'gmp'
No 'Makefile' created  PJACKLAM/Math-BigInt-GMP-1.37.tar.gz
  /usr/bin/perl Makefile.PL -- NOT OK
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites
Failed during this command:
 PJACKLAM/Math-BigInt-GMP-1.37.tar.gz         : writemakefile NO -- No 'Makefile' created


cpan[2]>



On 09/12/2013 02:54 PM, Erik Huelsmann wrote:
Hi Brian,

Do you also have Math::BigInt::GMP (libmath-bigint-gmp-perl on Debian/Ubuntu) installed? I usually do that to prevent warnings (or errors) like these.

Bye,

Erik.


On Tue, Sep 10, 2013 at 5:56 AM, Brian Wolf <..hidden..> wrote:
I recently upgraded LedgerSMB, and now getting an error on some screens, particularly when using screens related to oe.pl.
Lines below are from the Apache error log.  Line 61 in LedgerSMB/Form.pm refers to Math::BigFloat, though the error message mentions Math::BigInt.  BigFloat is installed here:

/usr/share/perl/5.12.4/Math/BigFloat.pm

Any help would be greatly appreciated since some functionality in LedgerSMB is at a standstill until this is fixed.

[Mon Sep 09 21:15:19 2013] [notice] caught SIGTERM, shutting down
[Mon Sep 09 22:53:38 2013] [notice] Apache/2.2.20 (Ubuntu) configured -- resuming normal operations
[Mon Sep 09 23:23:17 2013] [error] [client 127.0.0.1] Mon Sep  9 23:23:17 2013 Sysconfig.pm created tempdir /tmp/ledgersmb rc=0
[Mon Sep 09 23:23:37 2013] [error] [client 127.0.0.1] Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::FastCalc at LedgerSMB/Form.pm line 61, referer: http://localhost/ledgersmb/menu.pl?login=admin&action="">
[Mon Sep 09 23:23:37 2013] [error] [client 127.0.0.1] syntax error at bin/
oe.pl line 3777, at EOF, referer: http://localhost/ledgersmb/menu.pl?login=admin&action="">
[Mon Sep 09 23:23:37 2013] [error] [client 127.0.0.1] Compilation failed in require at
old-handler.pl line 154., referer: http://localhost/ledgersmb/menu.pl?login=admin&action="">
[Mon Sep 09 23:23:37 2013] [error] [client 127.0.0.1] Compilation failed in require at /home/brian/projects/ledgersmb/
oe.pl line 7., referer: http://localhost/ledgersmb/menu.pl?login=admin&action="">
[Mon Sep 09 23:23:37 2013] [error] [client 127.0.0.1] Premature end of script headers:
oe.pl, referer: http://localhost/ledgersmb/menu.pl?login=admin&action="">


Thanks.
Brian

Activus Technologies
Brian Wolf
Email: ..hidden..
  • LedgerSMB Accounting Software Integrated with Amazon Marketplace
  • Integrated Payment Solutions

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-devel mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel




--
Bye,

Erik.

http://efficito.com -- Hosted accounting and ERP.
Robust and Flexible. No vendor lock-in.


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk


_______________________________________________
Ledger-smb-devel mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-devel mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel




--
Bye,

Erik.

http://efficito.com -- Hosted accounting and ERP.
Robust and Flexible. No vendor lock-in.


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk


_______________________________________________
Ledger-smb-devel mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel