[Bug 497385] Re: Getting an unexpected warning and a syntax error when installing

jehon jeanhonlet at gmail.com
Tue Dec 22 05:46:38 UTC 2009


I did install ebox successfully one month ago, but now, I got the same
problem when starting ebox...

$ sudo /etc/init.d/ebox usage
sh: Syntax error: "(" unexpected

$ sudo /usr/bin/perl /etc/init.d/ebox usage
sh: Syntax error: "(" unexpected

Which let me think it run under sh (instead of perl as indicated at
first line of ebox)

$ sudo sh -x /etc/init.d/ebox usage
+ use strict
/etc/init.d/ebox: 1: use: not found
+ use warnings
/etc/init.d/ebox: 1: use: not found
+ use EBox::Global
/etc/init.d/ebox: 1: use: not found
+ use EBox
/etc/init.d/ebox: 1: use: not found
+ use EBox::Sudo
/etc/init.d/ebox: 1: use: not found
+ use File::Slurp
/etc/init.d/ebox: 1: use: not found
/etc/init.d/ebox: 18: Syntax error: "(" unexpected

Which confirm my idea: it run under sh instead of perl

Note that, strangely, if you run it without root priviledges (as normal user), it says:
$ /usr/bin/perl /etc/init.d/ebox usage
Cannot change user to ebox at /usr/share/perl5/EBox.pm line 137.

Which let me think it run correctly as perl executable.

-- 
Getting an unexpected warning and a syntax error when installing
https://bugs.launchpad.net/bugs/497385
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list