Current time: 11-27-2024, 08:24 AM Hello There, Guest! (LoginRegister)


Post Reply 
Many Perl-Errors
Author Message
Daniel Offline
Newbie
*

Posts: 8
Joined: Dec 2007
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
Banned

Posts: 3,561
Joined: Jul 2007
Post: #2
RE: Many Perl-Errors
Which Distro do you use?
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
*

Posts: 8
Joined: Dec 2007
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
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
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
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
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
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
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
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
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
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
*

Posts: 8
Joined: Dec 2007
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
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #8
RE: Many Perl-Errors
Could you post the file /etc/logrotate.d/apache(2) ? after running the setup?

Thanx
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
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #9
RE: Many Perl-Errors
the same: http://www.isp-control.net/forum/fehler-...l#pid17638
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
*

Posts: 8
Joined: Dec 2007
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
Post Reply 


Forum Jump:


User(s) browsing this thread: 6 Guest(s)