Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Syntax error, Please help

Quote Reply
Syntax error, Please help
I have been trying to install links at hypermart.net
I can not get to the admin.cgi page,I get the following error message:

>
>Error including libraries: syntax error at links.cfg line 33,
>near "$build_new_path"
>
>Make sure they exist, permissions are set properly, and paths
>are set correctly.</noscript>
>

I have try all sorts to correct it, read the forum for hours and days,
I have been at it for 6 days now with no definite results, I have
learn a lot that way,thanks to all of you,but I still don't know what
to do about my syntac error and I needed the script working yesterday.


I have set links in the cgi-bin under his own directory.
cgi/links/...All the content of the zip file except the page
directory.

The page directory with the .css and .gif files is in my
root directory. I have add a new,cool and ratings directory
in the pages directory, but I feel it may be wrong.

I have added a file call mailer.log in /cgi-bin/links/mailer.log
chmoded 666.

I have check my path with a good script, I found on the forum.

I have post some long files on the hypermart site in order not to
use to much ressource on this forum.

My links.cfg is available at :

http://e-yields.hypermart.net/linkscfg.txt

The detail for my root path, etc..
http://e-yields.hypermart.net/pathfinder.html

I have chmod my dir and files according to the following detailed
file from the forum,I guess who ever wrote it was right even if I
have see some different advice on the forum. Please check it at:

http://e-yields.hypermart.net/detailledchmod.txt

NOTE: On that last file I have noticed LWP directory that I don't have
in my zip file, do I need to get it from hypermart?

and a html dir containing 3 files: 644 Entities.pm
644 HeadParser.pm
644 Parser.pm
wich I don't have either.

If there is something you don't understand in my explanation about the way I
set up my directory, you can check directly by Ftp my account at:

e-yields.hypermart.net password = testftp

Please don't abuse it, i have enough problems.
I will change the password back to my own when I finish the messing about.

I think I have give you everything needed to help me.

Please help, as I am getting really frustrated, if you think I should install
the script at another free site, give me an url and I do it immediatly.
I plan to try the all thing at a free site and set it up with it's own domain
as soon as I get some results.

Thanks,
JC



Quote Reply
Re: Syntax error, Please help In reply to
hi,

went to here really quick, not a perl person, but I did notice that at:

http://e-yields.hypermart.net/linkscfg.txt line 33 and following

all of your new directories that need to be built are in lower case.

MY linkscfg has not cool but 'C'ool

so New, Cool, Ratings should be used possibly

Try my suggestion until real help arrives, I'm a newbie myself.

Did you instal the plain vanilla version or did you go about hacking and moding and later finding out you screwed up like I did?

You mentioned missing files ...... Shocked ummm, like I said I don't know a licken of perl but I did have everything when I downloadded the file from here. Maybe you should get a new version and up that, Hypermart didn't have problems with DBman about a year ago, things might have changed but links should work from the start, mine did (not on hypermart since I haven't used their service recently) it should though.

Hope I have been helpful.

Quote Reply
Re: Syntax error, Please help In reply to
Thank you, jdunes,

I did change it for lower case as I was trying different things in case it work!!!

But it did not make any difference, as you suggested I
change it back.

I find out about the missing LWP files, (I think I have
read more than 250 threads on this forum!!), the latest
version of links, since 9 of july, if my memory is good,
does not need thoses files and directories, they have
been integrated in the rest of the script.
There is also one line about this in the readme file at
revision history.

The version I am installing is the plain one, I would not
dare venturing any further at this stage, I plan to do this
at a latter time,if I have the courage.

You mention you did not have any problem setting up links,
which host are you using? I might move since I have not
done much yet.

Thanks for your help.

Quote Reply
Re: Syntax error, Please help In reply to
I use a regular IP,

hmm, stick with the first Letter Capitalized I think that's what default is in np_build.cgi.

LWP can't tell you anything here except that you're probably right and I'M just wasting some disk space, but can't hurt to leave them on.

You might want to put the pages into the links directory ???? who knows

http://e-yields.hypermart.net/cgi-bin/links/pages

Other things I can suggest, reupload everything, yeah I know it's a pain in the A_S, but everything is blowing the same errors. Next, set your paths to back to default directories and then try moving things around later after the vanilla version works, AND the grand daddy of them all, set everthing to 777, hell if permissions are getting you, you can always tighten security later, hey what's another access point into hypermart.

Something to think about, LINKS builds pages on it's own and hypermart server might not allow this,hmm did you find somebody on the registered list that uses hypermart? but hypermart is one of the better places I've seen.

sorry, I'm not a pro at this but these are things I try all the time. waste of time but results are what I care about not the method.

G-luck

Quote Reply
Re: Syntax error, Please help In reply to
In Reply To:
>Error including libraries: syntax error at links.cfg line 33,
>near "$build_new_path"
Please post your line 33 and 5 lines above it from your links.cfg file (if you're still having syntax issues)

--mark

Installation support is provided via ICQ at UIN# 53788453. I will only respond on that number.
Quote Reply
Re: Syntax error, Please help In reply to
Mark, you wrote:

Please post your line 33 and 5 lines above it from your links.cfg file (if you're still having syntax issues)

Yes, i am still having problem, nothing has change.
Here are the lines you ask for:

# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/data1/hypermart.net/e-yields/cgi-bin/links/admin";
$db_dir_url = "http://e-yields.hypermart.net/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://e-yields.hypermart.net/cgi-bin/links";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/data1/hypermart.net/e-yields/pages";
$build_root_url = "http://e-yields.hypermart.net/pages"

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_root_path/New";
$build_new_url = "$build_root_url/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_root_path/Cool";
$build_cool_url = "$build_root_url/Cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_root_path/Ratings";
$build_ratings_url = "$build_root_url/Ratings";

Tell me if you need anything else, you can also go directly to my different files. I have posted on my site. See the first message in this thread.

Thank you for helping me,
JC



Quote Reply
Re: Syntax error, Please help In reply to
Well folks,

I am still trying to no avail and I did not have any real answer from this forum.
I am sure it has to be something simple that I screw up but I just can't see it.
if anyone has an idea, please help before I give up for good and install something else.


Quote Reply
Re: Syntax error, Please help In reply to
You are missing a semi-colon at the end of the following line of codes:

Code:

$build_root_url = "http://e-yields.hypermart.net/pages"


You need to add a semi-colon at the end of the line, like the following:

Code:

$build_root_url = "http://e-yields.hypermart.net/pages";


Regards,

Eliot Lee

Quote Reply
Re: Syntax error, Please help In reply to
# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_root_path/Ratings";
$build_ratings_url = "$build_root_url/Ratings";

By the way: Did you change the ratings-path in the Links.cfg? DIRs default-name is "Rates" - not "Ratings"!

$db_rates_path = "$db_script_path/data/rates"; # PATH to ratings.

to

$db_rates_path = "$db_script_path/data/ratings"; # PATH to ratings.

Regards,
Norbert



Quote Reply
Re: Syntax error, Please help In reply to
Eliot,

Thousands thanks, everything work perfectly now.

I am so happy, I was almost ready to give up just for a semi-colon.

I must have read that line more than 60 times on the last ten days and never noticed the missing semi-colon.

Thanks again for your kindness helping me and lots of other people on this forum and I hope, one day, I would be able to do something for you in return.

Best regards,

A now really happy Jean-claude



Quote Reply
Re: Syntax error, Please help In reply to
Norbert,

Thank for your help, the missing semi-colon was my problem as you can see in the preceding post.

My version of links 2.01 use the word "rating", I guess older version had the word "rate" in the script.

Thank you,

Best regards,

Jean-claude