Post Reply  Post Thread 
Pages (2): [1] 2 Next >
Many Perl-Errors
Author Message
Daniel Offline
Newbie
*

Daniel
Newbie
*


Posts: 8
Group: Registered
Joined: Dec 2007
Status: Offline
Reputation: 0
Post: #1
Many Perl-Errors
I would install the nightly-build from today, but there are many perl-errors.

Code:
root@server:/var/www/ispcp/engine/setup# perl ./ispcp-setup
Bareword found where operator expected at ./ispcp-setup line 2504, near "my $gui_root_dir = "$main::cfg{'ROOT_DIR'}/gui"
        (Do you need to predeclare my?)
String found where operator expected at ./ispcp-setup line 2506, near "$cmd = ""
  (Might be a runaway multi-line "" string starting on line 2504)
        (Missing semicolon on previous line?)
Scalar found where operator expected at ./ispcp-setup line 2506, near "$cmd = "$main::cfg"
        (Missing operator before $main::cfg?)
String found where operator expected at ./ispcp-setup line 2516, near "sys_command_rs(""
  (Might be a runaway multi-line "" string starting on line 2506)
        (Missing semicolon on previous line?)
Scalar found where operator expected at ./ispcp-setup line 2516, near "sys_command_rs("$main::cfg"
Bareword found where operator expected at ./ispcp-setup line 2516, near "/tmp/ispcp"
(Missing operator before pcp?)
Scalar found where operator expected at ./ispcp-setup line 2532, near "my $cfg_dir = "$main::cfg"
(Might be a runaway multi-line "" string starting on line 2516)
(Do you need to predeclare my?)
Global symbol "$gui_root_dir" requires explicit package name at ./ispcp-setup line 2492.
syntax error at ./ispcp-setup line 2504, near "my $gui_root_dir = "$main::cfg{'ROOT_DIR'}/gui"
syntax error at ./ispcp-setup line 2506, near "}:"
Global symbol "$gui_root_dir" requires explicit package name at ./ispcp-setup line 2506.
syntax error at ./ispcp-setup line 2516, near "sys_command_rs(""
syntax error at ./ispcp-setup line 2516, near "&>"
Global symbol "$rs" requires explicit package name at ./ispcp-setup line 2516.
Global symbol "$rdata" requires explicit package name at ./ispcp-setup line 2516.
Global symbol "$cfg_dir" requires explicit package name at ./ispcp-setup line 2516.
Execution of ./ispcp-setup aborted due to compilation errors.
[/code]
12-03-2007 08:21 PM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Documentation Team
***
Docu Team

gOOvER
Documentation Team
***
Docu Team


Posts: 1,621
Group: Docu Team
Joined: Jul 2007
Status: Offline
Reputation: 13
Post: #2
RE: Many Perl-Errors
Which Distro do you use?

Server : Rootserver
OS : Debian 4.0 Etch 64bit
ispCP Version : 1.0.0 r1363 - 30.09.08 (NightlyBuild)
Activated : AWStats dynamic
Mods : update via NightlyUpdateScript
12-03-2007 08:40 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Daniel Offline
Newbie
*

Daniel
Newbie
*


Posts: 8
Group: Registered
Joined: Dec 2007
Status: Offline
Reputation: 0
Post: #3
RE: Many Perl-Errors
Debian etch
12-03-2007 08:44 PM
Find all posts by this user Quote this message in a reply
joximu Offline
Moderator
*****

joximu
Moderator
*****


Posts: 3,627
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 47
Post: #4
RE: Many Perl-Errors
This is strange - there were several changes but not in this part - just a few lines before (line 2470...).

This ticket 835 will cost us alot of time...

Let's check this!

/J

2008-08-05 ispCP RC6 released!!!
12-03-2007 09:10 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
Moderator
*****

joximu
Moderator
*****


Posts: 3,627
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 47
Post: #5
RE: Many Perl-Errors
The errors are not in 2504 and following - it's the code before -> so we have to look at it again.

I'll open the old ticket again...

/J

2008-08-05 ispCP RC6 released!!!
12-03-2007 10:18 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
Moderator
*****

joximu
Moderator
*****


Posts: 3,627
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 47
Post: #6
RE: Many Perl-Errors
Hi Daniel

could you test this correction for us?

in ispcp-setup
line 2492

change the end of the line so it look like this
Code:
$rdata =~ s/sharedscripts/sharedscripts\n\tprerotate\n\t\t$main::cfg{'AWSTATS_ROOT_DIR'}\/awstats_updateal/gi;

instead of a "$" at the end, better a "/gi"...

with this correction the setup compiles and runs - but I don't know if it works as expected (should put a logrotate entry in the apache-logrotate file if awstat is enabled... - or something like this...)

Feedback welcome!

/J

2008-08-05 ispCP RC6 released!!!
12-03-2007 10:29 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Daniel Offline
Newbie
*

Daniel
Newbie
*


Posts: 8
Group: Registered
Joined: Dec 2007
Status: Offline
Reputation: 0
Post: #7
RE: Many Perl-Errors
It works. Thank you.
12-03-2007 11:13 PM
Find all posts by this user Quote this message in a reply
joximu Offline
Moderator
*****

joximu
Moderator
*****


Posts: 3,627
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 47
Post: #8
RE: Many Perl-Errors
Could you post the file /etc/logrotate.d/apache(2) ? after running the setup?

Thanx

2008-08-05 ispCP RC6 released!!!
12-04-2007 12:37 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RatS Offline
The Project's Fire Worker
******

RatS
The Project's Fire Worker
******


Posts: 694
Group: Super Moderators
Joined: Oct 2006
Status: Offline
Reputation: 18
Post: #9
RE: Many Perl-Errors
12-04-2007 09:18 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Daniel Offline
Newbie
*

Daniel
Newbie
*


Posts: 8
Group: Registered
Joined: Dec 2007
Status: Offline
Reputation: 0
Post: #10
RE: Many Perl-Errors
joximu Wrote:Could you post the file /etc/logrotate.d/apache(2) ? after running the setup?

Thanx

Code:
/var/log/apache2/*.log {
        weekly
        missingok
        rotate 52
        compress
        delaycompress
        notifempty
        create 640 root adm
        sharedscripts
        prerotate
                /var/www/ispcp/engine/awstats/awstats_updateall.pl
        prerotate
                /var/www/ispcp/engine/awstats/awstats_updateal
        postrotate
                if [ -f /var/run/apache2.pid ]; then
                        /etc/init.d/apache2 restart > /dev/null
                fi
        endscript
}
12-05-2007 06:02 PM
Find all posts by this user Quote this message in a reply
Pages (2): [1] 2 Next >
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this thread |

Forum Jump:

| All rights reserved : isp-control.net |