Insecure dependency / Can't locate Business/CreditCard.pm
Randy Millis
rmillis at home.com
Sat Dec 30 00:34:53 PST 2000
Spent all day on this and need some help:
I am rather green with much of this stuff, but I am starting to have a clue.
:-)
To the best of my knowledge, I followed all the instructions and added all
the dependencies, modules, set all the permissions needed but am getting the
following errors when I to run the "New Customer" function (the first one I
have tried) which calls cust_main.cgi:
--cut--
Software error:
Insecure dependency in unlink while running setuid at
/usr/lib/perl5/site_perl/5.6.0/Date/Manip.pm line 34.
For help, please send mail to the webmaster (root at localhost
<mailto:root at localhost>), giving this error message and the time and date of
the error. Content-type: text/html
--cut--
When cust_main.cgi runs top shows the user freeside running perl5.6.0.
My permissions are:
/var/www/html/freeside
total 36
drwxr-xr-x 2 freeside freeside 4096 Dec 29 16:14 browse
drwxr-xr-x 3 freeside freeside 4096 Dec 29 16:14 docs
drwxr-xr-x 3 freeside freeside 4096 Dec 29 16:14 edit
drwxr-xr-x 2 freeside freeside 4096 Dec 29 16:14 images
-r-xr-xr-x 1 freeside freeside 4109 Dec 29 16:14 index.html
drwxr-xr-x 3 freeside freeside 4096 Dec 29 16:14 misc
drwxr-xr-x 2 freeside freeside 4096 Dec 29 16:14 search
drwxr-xr-x 2 freeside freeside 4096 Dec 29 16:14 view
/var/www/html/freeside/browse
total 28
-rwsr-xr-x 1 freeside freeside 3474 Dec 29 16:14 agent.cgi
-rwsr-xr-x 1 freeside freeside 2842 Dec 29 16:14 agent_type.cgi
-rwsr-xr-x 1 freeside freeside 2553 Dec 29 16:14 cust_main_county.cgi
-rwsr-xr-x 1 freeside freeside 3088 Dec 29 16:14 part_pkg.cgi
-rwsr-xr-x 1 freeside freeside 2200 Dec 29 16:14 part_referral.cgi
-rwsr-xr-x 1 freeside freeside 3011 Dec 29 16:14 part_svc.cgi
-rwsr-xr-x 1 freeside freeside 2560 Dec 29 16:14 svc_acct_pop.cgi
/var/www/html/freeside/edit
total 100
-rwsr-xr-x 1 freeside freeside 3001 Dec 29 16:14 agent.cgi
-rwsr-xr-x 1 freeside freeside 3639 Dec 29 16:14 agent_type.cgi
-rwsr-xr-x 1 freeside freeside 3410 Dec 29 16:14 cust_credit.cgi
-rwsr-xr-x 1 freeside freeside 14858 Dec 29 16:14 cust_main.cgi
-rwsr-xr-x 1 freeside freeside 2385 Dec 29 16:14
cust_main_county-expand.cgi
-rwsr-xr-x 1 freeside freeside 2428 Dec 29 16:14 cust_main_county.cgi
-rwsr-xr-x 1 freeside freeside 2403 Dec 29 16:14 cust_pay.cgi
-rwsr-xr-x 1 freeside freeside 4646 Dec 29 16:14 cust_pkg.cgi
-rwsr-xr-x 1 freeside freeside 5218 Dec 29 16:14 part_pkg.cgi
-rwsr-xr-x 1 freeside freeside 2490 Dec 29 16:14 part_referral.cgi
-rwsr-xr-x 1 freeside freeside 6077 Dec 29 16:14 part_svc.cgi
drwxr-xr-x 2 freeside freeside 4096 Dec 29 16:14 process
-rwsr-xr-x 1 freeside freeside 6439 Dec 29 16:14 svc_acct.cgi
-rwsr-xr-x 1 freeside freeside 3091 Dec 29 16:14 svc_acct_pop.cgi
-rwsr-xr-x 1 freeside freeside 7319 Dec 29 16:14 svc_acct_sm.cgi
-rwsr-xr-x 1 freeside freeside 5193 Dec 29 16:14 svc_domain.cgi
/var/www/html/freeside/misc
-rwsr-xr-x 1 freeside freeside 1595 Dec 29 16:14 bill.cgi
-rwsr-xr-x 1 freeside freeside 2058 Dec 29 16:14 cancel-unaudited.cgi
-rwsr-xr-x 1 freeside freeside 1812 Dec 29 16:14 cancel_pkg.cgi
-rwsr-xr-x 1 freeside freeside 1683 Dec 29 16:14 delete-customer.cgi
-rwsr-xr-x 1 freeside freeside 1492 Dec 29 16:14 expire_pkg.cgi
-rwsr-xr-x 1 freeside freeside 2291 Dec 29 16:14 link.cgi
-rwsr-xr-x 1 freeside freeside 1397 Dec 29 16:14 print-invoice.cgi
drwxr-xr-x 2 freeside freeside 4096 Dec 29 16:14 process
-rwsr-xr-x 1 freeside freeside 1619 Dec 29 16:14 susp_pkg.cgi
-rwsr-xr-x 1 freeside freeside 1537 Dec 29 16:14 unsusp_pkg.cgi
/var/www/html/freeside/search
total 60
-rwsr-xr-x 1 freeside freeside 1066 Dec 29 16:14 cust_bill.cgi
-r-xr-xr-x 1 freeside freeside 346 Dec 29 16:14 cust_bill.html
-r-xr-xr-x 1 freeside freeside 426 Dec 29 16:14
cust_main-payinfo.html
-rwsr-xr-x 1 freeside freeside 7902 Dec 29 16:14 cust_main.cgi
-r-xr-xr-x 1 freeside freeside 1082 Dec 29 16:14 cust_main.html
-rwsr-xr-x 1 freeside freeside 3695 Dec 29 16:14 cust_pkg.cgi
-rwsr-xr-x 1 freeside freeside 6174 Dec 29 16:14 svc_acct.cgi
-r-xr-xr-x 1 freeside freeside 346 Dec 29 16:14 svc_acct.html
-rwsr-xr-x 1 freeside freeside 3912 Dec 29 16:14 svc_acct_sm.cgi
-r-xr-xr-x 1 freeside freeside 453 Dec 29 16:14 svc_acct_sm.html
-rwsr-xr-x 1 freeside freeside 5990 Dec 29 16:14 svc_domain.cgi
-r-xr-xr-x 1 freeside freeside 343 Dec 29 16:14 svc_domain.html
/var/www/html/freeside/view
total 44
-rwsr-xr-x 1 freeside freeside 2464 Dec 29 16:14 cust_bill.cgi
-rwsr-xr-x 1 freeside freeside 14261 Dec 29 16:14 cust_main.cgi
-rwsr-xr-x 1 freeside freeside 6418 Dec 29 16:14 cust_pkg.cgi
-rwsr-xr-x 1 freeside freeside 5085 Dec 29 16:14 svc_acct.cgi
-rwsr-xr-x 1 freeside freeside 3473 Dec 29 16:14 svc_acct_sm.cgi
-rwsr-xr-x 1 freeside freeside 2894 Dec 29 16:14 svc_domain.cgi
/usr/local/etc
--cut--
/usr/local/etc
total 4
drwxr-xr-x 5 freeside freeside 4096 Dec 29 17:26 freeside
./freeside:
total 36
drwxr-xr-x 3 freeside freeside 4096 Dec 29 17:45
conf.DBI:mysql:freeside
drwxr-xr-x 2 freeside freeside 4096 Dec 29 17:26
counters.DBI:mysql:frees
ide
-rw-r--r-- 1 freeside freeside 16400 Dec 29 17:26
dbdef.DBI:mysql:freeside
drwxr-xr-x 2 freeside freeside 4096 Dec 29 17:24
export.DBI:mysql:freesid
e
-rw-r--r-- 1 freeside freeside 40 Dec 29 17:06 mapsecrets
./freeside/conf.DBI:mysql:freeside:
total 36
-r--r-xr-- 1 freeside freeside 77 Dec 29 17:21 address
-r--r-xr-- 1 freeside freeside 13 Dec 29 17:19 domain
-r--r-xr-- 1 freeside freeside 6 Dec 29 17:17 home-rw-r--r-- 1
freeside freeside 37 Dec 29 17:44 secrets
-r--r-xr-- 1 freeside freeside 27 Dec 29 17:20 shells
-r--r-xr-- 1 freeside freeside 4 Dec 29 17:20 smtpmachine
./freeside/conf.DBI:mysql:freeside/registries:
total 4
drwxr-xr-x 2 freeside freeside 4096 Dec 29 17:17 internic
./freeside/conf.DBI:mysql:freeside/registries/internic:
total 28
-r--r-xr-- 1 freeside freeside 18 Dec 29 17:17 from
-r--r-xr-- 1 freeside freeside 93 Dec 29 17:17 nameservers
-r--r-xr-- 1 freeside freeside 3 Dec 29 17:17 tech_contact
-r--r-xr-- 1 freeside freeside 10290 Dec 29 17:17 template
-r--r-xr-- 1 freeside freeside 24 Dec 29 17:17 to
./freeside/counters.DBI:mysql:freeside:
total 4
-rw-r--r-- 1 freeside freeside 17 Dec 29 17:26
cust_main_county.taxnum
./freeside/export.DBI:mysql:freeside:
total 0
-r--r-xr-- 1 freeside freeside 7 Dec 29 17:17 lpr
-rw-r--r-- 1 freeside freeside 4 Dec 29 17:20 q
drwxr-xr-x 3 freeside freeside 4096 Dec 29 17:17 registries
Software error:
Can't locate Business/CreditCard.pm in @INC (@INC contains:
/usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl) at /usr/lib/perl5/site_perl/5.6.0/FS/cust_main.pm
line 17.
For help, please send mail to the webmaster (root at localhost
<mailto:root at localhost>), giving this error message and the time and date of
the error. Content-type: text/html
Software error:
[Fri Dec 29 17:54:47 2000] CreditCard.pm: Can't locate
Business/CreditCard.pm in @INC (@INC contains:
/usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl) at /usr/lib/perl5/site_perl/5.6.0/FS/cust_main.pm
line 17. BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.6.0/FS/cust_main.pm line 17.
For help, please send mail to the webmaster (root at localhost
<mailto:root at localhost>), giving this error message and the time and date of
the error. Content-type: text/html
Software error:
[Fri Dec 29 17:54:47 2000] cust_main.pm: [Fri Dec 29 17:54:47 2000]
CreditCard.pm: Can't locate Business/CreditCard.pm in @INC (@INC contains:
/usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl) at /usr/lib/perl5/site_perl/5.6.0/FS/cust_main.pm
line 17. [Fri Dec 29 17:54:47 2000] cust_main.pm: BEGIN failed--compilation
aborted at /usr/lib/perl5/site_perl/5.6.0/FS/cust_main.pm line 17.
Compilation failed in require at
/usr/lib/perl5/site_perl/5.6.0/FS/cust_main.pm line 122.
For help, please send mail to the webmaster (root at localhost
<mailto:root at localhost>), giving this error message and the time and date of
the error. Content-type: text/html
Software error:
[Fri Dec 29 17:54:47 2000] cust_main.pm: [Fri Dec 29 17:54:47 2000]
cust_main.pm: [Fri Dec 29 17:54:47 2000] CreditCard.pm: Can't locate
Business/CreditCard.pm in @INC (@INC contains:
/usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl) at /usr/lib/perl5/site_perl/5.6.0/FS/cust_main.pm
line 17. [Fri Dec 29 17:54:47 2000] cust_main.pm: [Fri Dec 29 17:54:47 2000]
cust_main.pm: BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.6.0/FS/cust_main.pm line 17. [Fri Dec 29 17:54:47
2000] cust_main.pm: Compilation failed in require at
/usr/lib/perl5/site_perl/5.6.0/FS/cust_main.pm line 122. BEGIN
failed--compilation aborted at /var/www/html/freeside/edit/cust_main.cgi
line 122.
For help, please send mail to the webmaster (root at localhost
<mailto:root at localhost>), giving this error message and the time and date of
the error.
--cut--
It looks like Its installed (if I know what I am doing, and maybe I don't):
--cut--
cpan> install Business::CreditCard
Running install for module Business::CreditCard
Running make for J/JO/JONO/Business-CreditCard-0.21.tar.gz
Is already unwrapped into directory
/root/.cpan/build/Business-CreditCard-0.21
Has already been processed within this session
Running make test
No tests defined for BusinessCreditCard extension.
/usr/bin/make test -- OK
Running make install
Already done
--cut--
I am running:
Red Hat Linux release 7.0 (Guinness)
Kernel 2.2.16-22 on an i586
perl, v5.6.0 built for i386-linux
MySQL server version: 3.22.32
Not sure how to get DBI and DBD version. I installed them from CPAN so
assume they're the latest. (Help here would be appreciated):
--cut--
cpan> install DBI
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Going to read /root/.cpan/sources/modules/03modlist.data.gz
DBI is up to date.
--cut--
--cut--
cpan> install Bundle::DBD::mysql
DBI is up to date.
Data::ShowTable is up to date.
Mysql is up to date.
DBD::mysql is up to date.
--cut--
Randy Millis
Calgary, Alberta
Canada
Web: http://members.home.net/rmillis/
E-mail: rmillis at home.com
More information about the freeside-users
mailing list