LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 04-22-2008, 03:58 PM   #1
dody1313
Member
 
Registered: May 2007
Posts: 179

Rep: Reputation: 30
openwedmail.pl issue


I am trying to install openwebmail on my solaris 10 sparc server.
everytime i tried to run :
.../cgi-bin/openwebmail/openwebmail-tool.pl --init
it just stop there
i read somewhere that i have to update "perl", which i did
and i edited the path of the perl sript at the first line of the openwebmail-tool.pl file.
but still nothing happen.
when i do '#perl openwebmail-tool.pl'
i get these error message:

Bareword found where operator expected at openwebmail-tool.pl line 1, near "/bin/perl"
(Missing operator before perl?)
syntax error at openwebmail-tool.pl line 1, near "/usr/local"
"use" not allowed in expression at openwebmail-tool.pl line 8, at end of line
BEGIN not safe after errors--compilation aborted at openwebmail-tool.pl line 27.

i installed all the requirements they ask for.
is there something i am missing there?
thnx
 
Old 04-22-2008, 04:42 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by dody1313 View Post
i read somewhere that i have to update "perl", which i did
How and what did you update precisely ?
Quote:
and i edited the path of the perl sript at the first line of the openwebmail-tool.pl file.
What did you change here ? Post the first line as perl complains about it, you could post also line 8 and 27.
Quote:
when i do '#perl openwebmail-tool.pl'
i get these error message:

Bareword found where operator expected at openwebmail-tool.pl line 1, near "/bin/perl"
When you do "perl something", you defeat the first line interpreter path purpose.
 
Old 04-22-2008, 08:32 PM   #3
dody1313
Member
 
Registered: May 2007
Posts: 179

Original Poster
Rep: Reputation: 30
hi jlliagre,

How and what did you update precisely ?

well actually all i did is installing the new perl for solaris 10 because i read somewhere in order to fix the problem i am having with the '.pl' files i should try getting the new version of perl, which i did but nothing until now.

What did you change here ? Post the first line as perl complains about it, you could post also line 8 and 27.

well i am suppose to change the first line of the file to the path of my perl ...originally it's '#/usr/bin/suidperl -T', but i do not have suidperl on this directory so i changed it to the directory where my perl is.

do you think i am missing soemthing ?
 
Old 04-22-2008, 09:22 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Please provide details and paste the whole lines in error.

"read somewhere" and "the new version of perl" can hardly give clues about what you did.
 
Old 04-23-2008, 08:31 AM   #5
dody1313
Member
 
Registered: May 2007
Posts: 179

Original Poster
Rep: Reputation: 30
oh ok
when i do '#perl openwebmail-tool.pl' i get the message i showed u before:

Bareword found where operator expected at openwebmail-tool.pl line 1, near "/bin/perl"
(Missing operator before perl?)
syntax error at openwebmail-tool.pl line 1, near "/usr/local"
"use" not allowed in expression at openwebmail-tool.pl line 8, at end of line
BEGIN not safe after errors--compilation aborted at openwebmail-tool.pl line 27.

these are the lines with errors apparently:
line 1: "/usr/local/bin/perl"
line 8: "if ( $0 =~ m!^(\S*)/[\w\d\-\.]+\.pl! ) { local $1; $SCRIPT_DIR=$1 }
if ($SCRIPT_DIR eq '' && open(F, '/etc/openwebmail_path.conf')) { "
PS: i do not have this file 'openwebmail_path.conf' ...dont know if i have to create it or it's missing...they didn't specify on the README what to do to have it.

line 27: foreach (qw(ENV BASH_ENV CDPATH IFS TERM)) {delete $ENV{$_}}; $ENV{PATH}='/bin:/usr/bin'; # s
ecure ENV
umask(0002); # make sure the openwebmail group can write
use strict;
use Fcntl qw(EFAULT :flock);
use Net::SMTP;


hope this can help
 
Old 04-23-2008, 12:12 PM   #6
dody1313
Member
 
Registered: May 2007
Posts: 179

Original Poster
Rep: Reputation: 30
oh ok i got it alright
i messed up at the first line i should have kept the '#!' in front of the line for it to work properly...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SuSE10.2 networking issue Inter. connect. issue LVSuSE Linux - Networking 3 08-31-2007 02:42 AM
Sendmail issue (did not issue MAIL/EXPNVRFY/ETRN ...) Blackout_08 Linux - Server 0 08-08-2007 01:10 PM
Slack 10.1 -- Mouse issue / X11 issue Pozican Linux - General 4 04-19-2005 03:44 AM
webmin issue, poss security issue bejiita Slackware 3 11-03-2004 06:07 AM
Having Issue w/ Truetype fonts - Mozilla Issue clove Linux - Software 4 02-18-2004 08:26 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 07:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration