Gossamer Forum
Home : Products : Links 2.0 : Discussions :

jump.cgi errors galore - newbie needs help please

Quote Reply
jump.cgi errors galore - newbie needs help please
Hi everyone,

I had a running copy of Links 2.0 on my Linux server. Worked great on several domains, never had any problems with it. Moved it over to a Windows 2000 server and it up and died. Installed newest version of Perl, set permissions, etc. Have been banging my head against this for weeks now. Had it on 2 domains, decided to try to do it on a new domain to see if that would fix it, using the db from one of the other domains. Now getting the following error:

Error including libraries: Can't locate X:/D Sites/www/122wallstreet.com/cgi-bin/links/admin/db_utils.pl in @INC (@INC contains: X:\Dawns Sites\www\122wallstreet.com\cgi-bin\links /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int /usr/lib/perl5/5.8.2 /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl .) at X:\D Sites\www\122wallstreet.com\cgi-bin\links\jump.cgi line 36.

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


I'm not sure what to do now! I've tried everything, or at least thought I have. But obviously I'm overlooking something and can't see the forest through the trees.

Here is my jump.cgi:

#!X:\CGYWIN\bin\perl
#
# -------------
# Links
# -------------
# Links Manager
#
# File: X:\D Sites\www\122wallstreet.com\cgi-bin\links\links.cfg
# Description: Increments the number of hits for the specified link,
# and sends the user off to the appropriate page.
# Author: Alex Krohn
# Email:
alex@gossamer-threads.com
# Web: http://www.gossamer-threads.com/
# Version: 2.01
#
# (c) 1998 Gossamer Threads Inc.
#
# This script is not freeware! Please read the README for full details
# on registration and terms of use.
# =====================================================================
#
# Form Input:
# '$db_key' = key number # Send as form input the key name and key value
# # of the link you want to go to.
#
# Setup:
# Make sure the require statement below points to the config file.


# Required Librariers
# --------------------------------------------------------
eval {
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \


require "admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
require "$db_lib_path/db_utils.pl";
require "$db_lib_path/links.def";
};
if ($@) {
print "Content-type: text/plain\n\n";
print "Error including libraries:
$@\n[/url]";
print "Make sure they exist, permissions are set properly, and paths are set correctly.";
}


# ========================================================



And here is my links.cfg:

#!X:\CGYWIN\bin\perl
# -------------
# Links
# -------------
# Links Manager
#
# File: X:\D Sites\www\122wallstreet.com\cgi-bin\links\admin\links.cfg
# Description: Contains all the setup variables.
# Author: Alex Krohn
# Email:
alex@gossamer-threads.com
# Web: http://www.gossamer-threads.com/
# Version: 2.01
#
# (c) 1998 Gossamer Threads Inc.
#
# This script is not freeware! Please read the README for full details
# on registration and terms of use.
# =====================================================================


# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "X:/D Sites/www/122wallstreet.com/cgi-bin/links/admin";
$db_dir_url = "
http://www.122wallstreet.com/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "
http://www.sunsetangel.com/cgi-bin";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "X:/D Sites/www/122wallstreet.com/Links";
$build_root_url = "
http://www.122wallstreet.com/Links";

# 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";


# Database Options
# --------------------------------------------------------
# You really need to use flock(). However if your system doesn't support it (Win95),
# then turn this off at your own risk!
$db_use_flock = 1;
# Use Pragma: no-cache to stop browsers from caching output? (0 = cache, 1 = nocache)
$db_nocache = 0;
# Use IIS headers? Set this to 1 if your web server needs the full headers (HTTP/1.0 etc.)
$db_iis = 1;
# Field number of category in category.db
$db_main_category = 1;
# Referers -- which hosts are allowed to add to your database.
@db_referers = ();


# Email Options
# --------------------------------------------------------




I've tried / and \ I've checked and double-checked the paths. I need a fresh pair of eyes to look at this please. I am clueless.
Quote Reply
Re: [sunsetangel] jump.cgi errors galore - newbie needs help please In reply to
Have you tried double backslashes? i.e;

$db_script_path = "X:\\D Sites\\www\\122wallstreet.com\\cgi-bin\\links\\admin";

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] jump.cgi errors galore - newbie needs help please In reply to
Hm, not familiar with that sysytem, but looks like it may have something to do with \ vs / somewhere. How is your cfg file set?


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] jump.cgi errors galore - newbie needs help please In reply to
On NT, sometimes it is picky about the type of slash you use .... i.e c:/test/user/admin/file.html is different to c:\test\user\admin\file.html, as it would be interpreted as c:testserdminile.html (i.e the backslashes would be taken literally. By using something like;

c:\\test\\user\\admin\\file.html

...which should be translated as something like;

c:\test\user\admin\file.html

Hope that explains the method behind my madness :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] jump.cgi errors galore - newbie needs help please In reply to
I've tried / , \ , \\ , and //. Still getting that line 36 error.

Leonard - what do you mean by how is the cfg file set? cfg file posted above



Thanks guys, I'm open to any suggestions. Stayed up half the night on this again and still getting that same error. Someone put me out of my misery please. Unsure

Last edited by:

sunsetangel: Jan 19, 2004, 10:33 AM
Quote Reply
Re: [sunsetangel] jump.cgi errors galore - newbie needs help please In reply to
What do you have on the first 30 lines of admin.cgi?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] jump.cgi errors galore - newbie needs help please In reply to
Currently (with the lastest attempt at the mysterious / problem + I moved the entire folder to see if the space in the old folder name was the issue. This didn't fix it either. Here's my admin.cgi:

#
# -------------
# Links
# -------------
# Links Manager
#
# File: admin.cgi
# Description: This is the administrative interface for the links program.
# Author: Alex Krohn
# Email:
alex@gossamer-threads.com
# Web: http://www.gossamer-threads.com/
# Version: 2.01
#
# (c) 1998 Gossamer Threads Inc.
#
# This script is not freeware! Please read the README for full details
# on registration and terms of use.
# =====================================================================
#
# Required Librariers
# --------------------------------------------------------
eval {
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \

require 5.001; # Make sure we have at least perl 5.001.
require "X:\\122wallstreet.com\\cgi-bin\\links\\admin\\links.cfg"; # Change this to full path to links.cfg if you have problems.
require "$db_lib_path/db.pl"; # Database Routines.
require "$db_lib_path/db_utils.pl"; # Database Support utilities.
require "$db_lib_path/admin_html.pl"; # Admin HTML routines.
};


if ($@) {
print "Content-type: text/plain\n\n";
print "Error including libraries:
$@\n[/url]";
print "Make sure they exist, permissions are set properly, and paths are set correctly.";
exit;


}

# ========================================================
eval { &main; }; # Trap any fatal errors so the program hopefully
if ($@) { &cgierr("fatal error: $@"); } # never produces that nasty 500 server error page.
exit; # There are only two exit calls in the script, here and in in &cgierr.
# ========================================================


sub main {
# --------------------------------------------------------
$| = 1; # Flush Output Right Away


# Main Menu. Check to see what the user requested, then if he has permission for that
# request, do it. Otherwise send the user off to an unauthorized request page.
%in = &parse_form; # Get form input so we know which database to load.


# Load the database definition file and set the link url.
$in{'db'} ?
require "$db_lib_path/$in{'db'}.def" :
require "$db_lib_path/links.def";

$db_script_link_url = "$db_script_url?db=$in{'db'}";


# The functions beginning with &html_ can be found in admin_html.pl, while the other
# functions can be found in db.pl

if ($in{'add_form'}) { &html_add_form; } # Display the Add Record Form.
elsif ($in{'add_record'}) { &add_record; } # Add the Actual Record.
elsif ($in{'add_record_mult'}) { &add_record_mult; } # Add Multiple Records at once (beta).
elsif ($in{'view_search'}) { &html_view_search; } # Display form to search database.
elsif ($in{'view_records'}) { &view_records; } # Search database and print results.

Quote Reply
Re: [sunsetangel] jump.cgi errors galore - newbie needs help please In reply to
Take a look at the error message. It says that your path to the admin folder is;

X:\D Sites\www\122wallstreet.com\cgi-bin\links\admin

...not

X:\\122wallstreet.com\\cgi-bin\\links\\admin\\links.cfg

Wink

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] jump.cgi errors galore - newbie needs help please In reply to
Old error (either from reading above) or you just caught me mid-FTP. :)

Latest error:Error including libraries: Can't locate X:\122wallstreet.com\cgi-bin\links\admin/db_utils.pl in @INC (@INC contains: X:\122wallstreet.com\cgi-bin\links /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int /usr/lib/perl5/5.8.2 /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl .) at X:\122wallstreet.com\cgi-bin\links\jump.cgi line 36.Make sure they exist, permissions are set properly, and paths are set correctly.
Quote Reply
Re: [sunsetangel] jump.cgi errors galore - newbie needs help please In reply to
Changed the /'s back, added line to begginning of scripts. Still getting line 36 error.



links.cfg:

#!X:/CGYWIN/bin/perl
# -------------
# Links
# -------------
# Links Manager
#
# File: links.cfg
# Description: Contains all the setup variables.
# Author: Alex Krohn
# Email:
alex@gossamer-threads.com
# Web: http://www.gossamer-threads.com/
# Version: 2.01
#
# (c) 1998 Gossamer Threads Inc.
#
# This script is not freeware! Please read the README for full details
# on registration and terms of use.
# =====================================================================


# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "X:/122wallstreet.com/cgi-bin/links/admin";
$db_dir_url = "
http://www.122wallstreet.com/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "
http://www.sunsetangel.com/cgi-bin";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "X:/122wallstreet.com/Links";
$build_root_url = "
http://www.122wallstreet.com/Links";

# 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";


# Database Options
# --------------------------------------------------------
# You really need to use flock(). However if your system doesn't support it (Win95),
# then turn this off at your own risk!
$db_use_flock = 1;
# Use Pragma: no-cache to stop browsers from caching output? (0 = cache, 1 = nocache)
$db_nocache = 0;
# Use IIS headers? Set this to 1 if your web server needs the full headers (HTTP/1.0 etc.)
$db_iis = 1;
# Field number of category in category.db
$db_main_category = 1;
# Referers -- which hosts are allowed to add to your database.
@db_referers = ();


# Email Options



admin.cgi:

#!X:/CGYWIN/bin/perl
#
# -------------
# Links
# -------------
# Links Manager
#
# File: admin.cgi
# Description: This is the administrative interface for the links program.
# Author: Alex Krohn
# Email:
alex@gossamer-threads.com
# Web: http://www.gossamer-threads.com/
# Version: 2.01
#
# (c) 1998 Gossamer Threads Inc.
#
# This script is not freeware! Please read the README for full details
# on registration and terms of use.
# =====================================================================
#
# Required Librariers
# --------------------------------------------------------
eval {
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \

require 5.001; # Make sure we have at least perl 5.001.
require "X:/122wallstreet.com/cgi-bin/links/admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
require "$db_lib_path/db.pl"; # Database Routines.
require "$db_lib_path/db_utils.pl"; # Database Support utilities.
require "$db_lib_path/admin_html.pl"; # Admin HTML routines.
};


if ($@) {
print "Content-type: text/plain\n\n";
print "Error including libraries:
$@\n[/url]";
print "Make sure they exist, permissions are set properly, and paths are set correctly.";
exit;


}

# ========================================================
eval { &main; }; # Trap any fatal errors so the program hopefully
if ($@) { &cgierr("fatal error: $@"); } # never produces that nasty 500 server error page.
exit; # There are only two exit calls in the script, here and in in &cgierr.
# ========================================================


sub main {
# --------------------------------------------------------
$| = 1; # Flush Output Right Away


# Main Menu. Check to see what the user requested, then if he has permission for that
# request, do it. Otherwise send the user off to an unauthorized request page.
%in = &parse_form; # Get form input so we know which database to load.


# Load the database definition file and set the link url.
$in{'db'} ?
require "$db_lib_path/$in{'db'}.def" :
require "$db_lib_path/links.def";

$db_script_link_url = "$db_script_url?db=$in{'db'}";


# The functions beginning with &html_ can be found in admin_html.pl, while the other
# functions can be found in db.pl




jump.cgi

#!X:/CGYWIN/bin/perl
#
# -------------
# Links
# -------------
# Links Manager
#
# File: jump.cgi
# Description: Increments the number of hits for the specified link,
# and sends the user off to the appropriate page.
# Author: Alex Krohn
# Email:
alex@gossamer-threads.com
# Web: http://www.gossamer-threads.com/
# Version: 2.01
#
# (c) 1998 Gossamer Threads Inc.
#
# This script is not freeware! Please read the README for full details
# on registration and terms of use.
# =====================================================================
#
# Form Input:
# '$db_key' = key number # Send as form input the key name and key value
# # of the link you want to go to.
#
# Setup:
# Make sure the require statement below points to the config file.


# Required Librariers
# --------------------------------------------------------
eval {
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \


require "admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
require "$db_lib_path/db_utils.pl";
require "$db_lib_path/links.def";
};
if ($@) {
print "Content-type: text/plain\n\n";
print "Error including libraries:
$@\n[/url]";
print "Make sure they exist, permissions are set properly, and paths are set correctly.";
}


# ========================================================

eval { &main; }; # Trap any fatal errors so the program hopefully
if ($@) { &cgierr("fatal error: $@"); } # never produces that nasty 500 server error page.
exit; # There are only two exit calls in the script, here and in in &cgierr.


sub main {
# --------------------------------------------------------




error:

Error including libraries: Can't locate X:/122wallstreet.com/cgi-bin/links/admin/db_utils.pl in @INC (@INC contains: X:\122wallstreet.com\cgi-bin\links /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int /usr/lib/perl5/5.8.2 /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl .) at X:\122wallstreet.com\cgi-bin\links\jump.cgi line 36.Make sure they exist, permissions are set properly, and paths are set correctly.



Andy, thank you so much for your suggestions. I've read a lot of your posts on other threads and really appreciate you taking the time to try to help me. :)

Last edited by:

sunsetangel: Jan 19, 2004, 11:06 AM
Quote Reply
Re: [sunsetangel] jump.cgi errors galore - newbie needs help please In reply to
Here's aleap in the dark...try it this way:

# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "X:\122wallstreet.com\cgi-bin\inks\
admin";
$db_dir_url = "
http://www.122wallstreet.com/cgi-bin/links/admin";

Note slashes...

Read these for more info:

http://www.gossamer-threads.com/...0installation;#98120

http://gossamer-threads.com/...51739=View+Flat+Mode



Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] jump.cgi errors galore - newbie needs help please In reply to
Erm, you sure? Wink

$db_script_path = "X:\122wallstreet.com\cgi-bin\inks\admin";

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] jump.cgi errors galore - newbie needs help please In reply to
No problem! Gimme a new set of (coordinated) fingers, and some fresh eyeballs, I'm good to go!

Inks to ya!Blush


Leonard
aka PerlFlunkie