[freeside] Installation problem
ivan
ivan at 420.am
Wed May 30 08:17:12 PDT 2001
Hmm
The section of code in question is:
sub eidiot {
#warn "eidiot depriciated";
idiot(@_);
if (exists $ENV{MOD_PERL}) {
eval {
use Apache;
Apache::exit();
};
} else {
exit;
}
I'd guess you're not using mod_perl (and don't have it installed) and I
was silly as the `eval BLOCK' form doesn't properly delay the use
statement until runtime. Try the following patch and let me know how it
works for you:
Index: CGI.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/CGI.pm,v
retrieving revision 1.4
diff -u -r1.4 CGI.pm
--- CGI.pm 2000/05/13 21:50:12 1.4
+++ CGI.pm 2001/05/30 15:15:50
@@ -121,13 +121,11 @@
=cut
sub eidiot {
- #warn "eidiot depriciated";
+ warn "eidiot depriciated";
idiot(@_);
if (exists $ENV{MOD_PERL}) {
- eval {
- use Apache;
- Apache::exit();
- };
+ require Apache;
+ Apache::exit();
} else {
exit;
}
On Mon, May 28, 2001 at 02:02:51PM +0100, Moluh Njilie wrote:
> Hi
>
> I could create the freeside database.
> From my web browser after I am authenticated, when i try the 'View/Edit service
> definitions', here is the error message I have:
>
> Software error:
>
> Can't locate Apache.pm in @INC (@INC contains: /usr/local/lib/perl5/5.6.1/i686-linux
> /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/i686-linux
> /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl) at
> /usr/local/lib/perl5/site_perl/5.6.1/FS/CGI.pm line 128.
> BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.6.1/FS/CGI.pm line
> 128.
> Compilation failed in require at /usr/local/apache/htdocs/freeside/search/svc_acct.cgi
> line 65.
> BEGIN failed--compilation aborted at /usr/local/apache/htdocs/freeside/search/svc_acct.cgi
> line 65.
>
> What could be the problem, please.
> Thnax in advance.
>
> Moluh Njilie
> Net Admin,
> SDNP Cameroon
>
> ivan wrote:
>
> > You need to drop the Freeside database before running fs-setup again.
> >
> > http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#DROP_DATABASE
> >
> > On Tue, May 22, 2001 at 03:51:08PM +0100, root wrote:
> > > I have changed the ownership and I had an error message, and after i did fs-setup
> > > aigain, this is what I have:
> > >
> > > Use of uninitialized value in join or string at
> > > /usr/local/lib/perl5/site_perl/5.6.1/DBIx/DBSchema/Column.pm line 251.
> > > DBD::mysql::db do failed: Table 'svc_acct' already exists at bin/fs-setup line 279.
> > > CREATE error: Table 'svc_acct' already exists
> > > doing statement: CREATE TABLE svc_acct (
> > > svcnum int NOT NULL ,
> > > username varchar(30) NOT NULL ,
> > > _password varchar(50) NOT NULL ,
> > > popnum int NULL ,
> > > uid int NULL ,
> > > gid int NULL ,
> > > finger varchar(80) NULL ,
> > > dir varchar(80) NULL ,
> > > shell varchar(80) NULL ,
> > > quota varchar(80) NULL ,
> > > slipip varchar(15) NULL ,
> > > seconds int NULL ,
> > > PRIMARY KEY (svcnum),
> > > INDEX (username)
> > > )
> > >
> > > Does this mean that my freeside table is created?
> > > Thanks in advance.
> > >
> > > Moluh Njilie
> > > Net Admin
> > > SDNP Cameroon
> > >
> > > I have
> > >
> > > ivan wrote:
> > >
> > > > chown freeside /usr/local/etc/freeside
> > > >
> > > > On Tue, May 22, 2001 at 03:09:45PM +0100, root wrote:
> > > > > Hi to all,
> > > > > Please I need your help!
> > > > > Here is the error message while installing freeside 1.3.0 after I launched the
> > > > > fs-setup command:
> > > > >
> > > > > Can't open /usr/local/etc/freeside/dbdef.DBI:mysql:freeside: Permission denied at
> > > > > /usr/local/lib/perl5/site_perl/5.6.1/DBIx/DBSchema.pm line 153, <STDIN> line 3.
> > > > >
> > > > > I use
> > > > > Linux 7.0
> > > > > Mysql -3.23.38
> > > > > perl 5.6.1
> > > > > Apache _1.3.19
> > > > >
> > > > > Thanks in advance
> > > > >
> > > > >
> > > > >
> > > > > Moluh Njilie
> > > > > Net Admin
> > > > > SDNP, Cameroon
> > > > >
> > > >
> > > > --
> > > > meow
> > > > _ivan
> > >
> >
> > --
> > meow
> > _ivan
>
--
meow
_ivan
More information about the freeside-users
mailing list