Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Installation Problems

Quote Reply
Installation Problems
Hello Alex,

You asked me in the other thread to more detailed give info on my problem. Thats described below. May be there is something that I am making a mistake and am unable to figure it out. I have run a telnet protokoll and see the following :

perl sql.pl
syntax error in file sql.pl at line 25, next 2 tokens "use lib"
syntax error in file sql.pl at line 29, next 2 tokens "my $drop "
syntax error in file sql.pl at line 31, next 2 tokens "->"
syntax error in file sql.pl at line 35, next 2 tokens "->"
syntax error in file sql.pl at line 60, next 2 tokens "->"
syntax error in file sql.pl at line 63, next 2 tokens "->"
syntax error in file sql.pl at line 65, next 2 tokens "->"
Execution of sql.pl aborted due to compilation errors.


perl Import.pl
syntax error in file Import.pl at line 25, next 2 tokens "use lib"
syntax error in file Import.pl at line 29, next 2 tokens "my $db "
syntax error in file Import.pl at line 32, next 2 tokens "$@ and"
syntax error in file Import.pl at line 33, next 2 tokens ") or"
syntax error in file Import.pl at line 36, next 2 tokens "\Q$db_delim"
syntax error in file Import.pl at line 40, next 2 tokens "map {"
syntax error in file Import.pl at line 46, next 2 tokens "->"

Spurious backslash ignored at Import.pl line 46syntax error in file Import.pl at
line 47, next 2 tokens "$@ and"
syntax error in file Import.pl at line 52, next token "}"
Execution of Import.pl aborted due to compilation errors.

-rwxr-xr-x 1 rajani users 3654 Jul 19 13:09 Import.pl
-rwxr-xr-x 1 rajani users 11446 Jul 19 12:59 Parse_RDF.pl
-rwxr-xr-x 1 rajani users 12515 Jul 19 13:12 sql.pl

perl Parse_RDF.pl

syntax error in file Parse_RDF.pl at line 48, next 2 tokens "use strict"
Execution of Parse_RDF.pl aborted due to compilation errors.

dir

-rw-r--r-- 1 rajani users 6695 Jul 19 14:21 Links.pm
-rwxrwxrwx 1 rajani users 17853 Jul 16 04:11 admin.cgi
-rwxr-xr-x 1 rajani users 30304 Jul 16 04:11 nph-build.cgi
-rwxr-xr-x 1 rajani users 5938 Jul 16 04:11 nph-email.cgi
-rwxr-xr-x 1 rajani users 3021 Jul 16 04:11 nph-index.cgi
-rwxr-xr-x 1 rajani users 7592 Jul 16 04:11 nph-verify.cgi

perl Links.pm

syntax error in file Links.pm at line 26, next 2 tokens "use strict"
syntax error in file Links.pm at line 29, next 2 tokens "qw("
syntax error in file Links.pm at line 30, next 2 tokens "/;"
syntax error in file Links.pm at line 90, next 2 tokens "= ["
syntax error in file Links.pm at line 96, next 2 tokens "= {"
Execution of Links.pm aborted due to compilation errors.

perl admin.cgi

syntax error in file admin.cgi at line 28, next 2 tokens "use CGI"
syntax error in file admin.cgi at line 39, next 2 tokens "my $in "
Execution of admin.cgi aborted due to compilation errors.

perl nph-build.cgi

syntax error in file nph-build.cgi at line 28, next 2 tokens "use CGI"
syntax error in file nph-build.cgi at line 40, next 2 tokens "} and"
syntax error in file nph-build.cgi at line 43, next 2 tokens "new Links"
syntax error in file nph-build.cgi at line 44, next 2 tokens "new Links"
syntax error in file nph-build.cgi at line 45, next 2 tokens "new Links"
syntax error in file nph-build.cgi at line 46, next 2 tokens "new Links"
syntax error in file nph-build.cgi at line 50, next 2 tokens "->"
syntax error in file nph-build.cgi at line 51, next 2 tokens "->"
syntax error in file nph-build.cgi at line 53, next 2 tokens "my $s "
syntax error in file nph-build.cgi at line 55, next 2 tokens "$USE_HTML and"

nph-build.cgi has too many errors.

perl nph-index.cgi

syntax error in file nph-index.cgi at line 28, next 2 tokens "use CGI"
syntax error in file nph-index.cgi at line 36, next 2 tokens "my ("
syntax error in file nph-index.cgi at line 41, next 2 tokens "->"
syntax error in file nph-index.cgi at line 42, next 2 tokens "new CGI"
syntax error in file nph-index.cgi at line 43, next 2 tokens "->"
syntax error in file nph-index.cgi at line 46, next 2 tokens "new Links"
syntax error in file nph-index.cgi at line 47, next 2 tokens "->"
syntax error in file nph-index.cgi at line 54, next 2 tokens "->"
syntax error in file nph-index.cgi at line 57, next 2 tokens "->"
syntax error in file nph-index.cgi at line 62, next 2 tokens "->"

nph-index.cgi has too many errors.

perl nph-verify.cgi

syntax error in file nph-verify.cgi at line 28, next 2 tokens "use CGI"
syntax error in file nph-verify.cgi at line 37, next 2 tokens "my ("
syntax error in file nph-verify.cgi at line 41, next 2 tokens "->"
syntax error in file nph-verify.cgi at line 42, next 2 tokens "new CGI"
syntax error in file nph-verify.cgi at line 44, next 2 tokens "->"
syntax error in file nph-verify.cgi at line 47, next 2 tokens "LWP:"
syntax error in file nph-verify.cgi at line 57, next 2 tokens "my ("
syntax error in file nph-verify.cgi at line 79, next 2 tokens "my ("
syntax error in file nph-verify.cgi at line 112, next 2 tokens ") or"
syntax error in file nph-verify.cgi at line 115, next 2 tokens "new Links"

nph-verify.cgi has too many errors.

This files are transfered in ASCII format. File permissions are listed there. The database has no tables but it exists with the name XXX. But sql.pl does not run.

The new Multi_Cat mod scripts I inserted in the installation. It gave :

Software error:

Can't connect, no database driver specified at Links/DBSQL.pm line 171

So I substituted the new DBSQL.pl to the old one. Then all the scripts of 1.01 worked with DBSQL.pm v1.0, however at this time the sql.pl did not and never ran. So the new table structure was not there but with the old DBSQL.pm worked with the entire Links SQL v1.01!!!

So now there is no table and sql.pl does not run + DBSQL.pm error.

The software error with the new DBSQL.pm v1.01 was with every clicable link reference from Admin interface (With the old table structure). During all this time, the user password + database line was correctly configured.

This has blocked my further work and have no possibility to install. Actually you give everyone one installation which is included in the price. What I find is really worth considering is doing it by oneself more supported. Like for e.g. You installed my SQL. But I never figured out how and what happened. So now I do not know how to go about it. Mr. Pataki is very modest to say, well I do not know much about perl, but people like him can really handle well this situations and me not.

Mr. Pataki!

I have changed the thread to this new one because, I have a problem and when someone answers, I am extremely pleased to receive an email that drags me back to this forum. Otherwise I always have to peep in if someone did weave your thread further! Smile Well, if you have suggestions let me know. Now soon I will get some MySQL inserted somewhere as you rightly said, in a nutshell in may be helpful.

------------------
rajani











Quote Reply
Re: Installation Problems In reply to
Ahh, you are using Perl version 4. If you type:

perl -v

You'll see what version it is. So you need to find perl version 5 on your system. Common places are:

/usr/bin/perl5
/usr/local/bin/perl5

Then to run SQL.pl use perl5:

/usr/bin/perl5 SQL.pl

and it should work.

Cheers,

Alex
Quote Reply
Re: Installation Problems In reply to
Hello Alex!

Thanks, this damn this "perl5" gave me such a nightmare.


The old version of Links SQL v1.0 has :
#!/usr/local/bin/perl5

The new version of Links SQL 1.01 has
#!/usr/local/bin/perl

In every important file!

Does everyone has this?

I simply typed perl5 SQL.pl and it worked perfect. It took less then five minutes to get Links SQL going. The only thing that kept me going for further trials and retaining my patience is because I had a good trust in your programming.

Why did you change this first line? This gave me endless troubles!

But thanks for your little hint. Actually I am very jealous of every one who has installed already and are already playing. Especially I would like to thank to Mr. Pataki for helping me and building my interest and patience for forther trouble shooting!

What I have a problem is that it shown unknown date after build. But this i beleive it is because of parameters in the templates.

Thanks a millions again.

------------------
rajani











Quote Reply
Re: Installation Problems In reply to
Hello Alex,

Quote:
Ahh, you are using Perl version 4. If you type:

perl -v
You'll see what version it is. So you need to find perl version 5 on your system. Common places are:
/usr/bin/perl5
/usr/local/bin/perl5
So you see the problem. On my server there are perl 4 & 5. It searches for 4 as a default and under this /usr/local/bin/perlī, but /usr/local/bin/perl5 got everything correct, the untire installation.

The version 1.01 has this and I beleive this can be changed in the interest of every one with a little note in there commenting whyt and why.

But thanks anyway.

------------------
rajani











Quote Reply
Re: Installation Problems In reply to
Hi,

Actually all the scripts default to /usr/local/bin/perl. Version 1.0 worked because I changed this when I did the installation. =)

Most systems use either /usr/bin/perl or /usr/local/bin/perl as perl 5, not many systems have perl 4 any more.

Cheers,

Alex