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

Error including libraries: syntax error line 212

Quote Reply
Error including libraries: syntax error line 212
Hi,

Can anyone help me with this?

What am I failing to see/understand?

error message

Error including libraries: syntax error at /home/mysite/public_html/cgi-bin/links/admin/links.cfg line 212, near "$db_links_name "

Make sure they exist, permissions are set properly, and paths are set correctly.



# -------------------------------------------------------------
# Extra Paths -- unless you feel the need to rename files, you
# can leave this as is.
# -------------------------------------------------------------
$db_script_url = $db_dir_url . "/admin.cgi"; # Admin script.
$db_header_path = $db_script_path . "/header"; # Place to store header and footers.
$db_footer_path = $db_script_path . "/footer";
$build_search_url = $db_cgi_url . "/search.cgi"; # URL of search script.
$build_add_url = $db_cgi_url . "/add.cgi"; # URL of add script.
$build_modify_url = $db_cgi_url . "/modify.cgi"; # URL of modify script.
$build_jump_url = $db_cgi_url . "/jump.cgi"; # URL of jump script.
$build_email_url = $db_cgi_url . "/subscribe.cgi"; # URL of email update script.
$build_rate_url = $db_cgi_url . "/rate.cgi"; # URL of rate script.
$db_mail_url = $db_dir_url . "/nph-email.cgi"; # URL of admin mass mail script.
$build_css_url = $build_root_url . "/links.css"; # URL to your CSS file.

$db_lib_path = $db_script_path; # PATH of library files.

212 --> $db_links_name = "$db_script_path/data/links.db"; # PATH to links database.


$db_category_name = "$db_script_path/data/categories.db"; # PATH to category database.
$db_valid_name = "$db_script_path/data/validate.db"; # PATH to validation database.
$db_modified_name = "$db_script_path/data/modified.db"; # PATH to modification database.
$db_url_name = "$db_script_path/data/url.db"; # PATH to URL lookup database.
$db_email_name = "$db_script_path/data/email.db"; # PATH to email database.
$db_links_id_file_name = "$db_script_path/data/linksid.txt"; # PATH to links counter file.
$db_category_id_file_name = "$db_script_path/data/categoryid.txt"; # PATH to category counter file.
$db_hits_path = "$db_script_path/data/hits"; # PATH to hits directory.
$db_template_path = "$db_script_path/templates"; # PATH to templates.
$db_rates_path = "$db_script_path/data/rates"; # PATH to ratings.
1;

Much appreciated

Thank you
Quote Reply
Re: [redtag] Error including libraries: syntax error line 212 In reply to
$db_script_path should look like:

$db_script_path=/home/mysite/public_html/cgi-bin/links/admin/


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Quote Reply
Re: [redtag] Error including libraries: syntax error line 212 In reply to
Actually, the "correct" configuration for $db_script_path var would be:

$db_script_path = "/home/mysite/public_html/cgi-bin/links/admin/";

which should be located towards the top of the links.cfg file.

If you use the codes that esm provided, your script will continue to crap out.
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [esm] Error including libraries: syntax error line 212 In reply to
yep, I added the $db_script_path= at the last moment and didn't add the correct syntax. My bad.


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."