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

links 2.0 for spaceports?

Quote Reply
links 2.0 for spaceports?
I have set the correct permissions and paths but i get this error when I go to admin.cgi:

Error including libraries: Can't locate http://cgi-bin.spaceports.com/~tfspark/links/cgi-bin/admin/links.cfg in @INC (@INC contains: /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 .) at admin.cgi line 27.

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

Can anybody help me with this. Thanks!

Quote Reply
Re: links 2.0 for spaceports? In reply to
Thats cos you are using URL's instead of paths Wink A path looks like /home/username/path/to/the/folder (or something like that Wink).

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: links 2.0 for spaceports? In reply to
I changed it to a path and got the same error. Do I have to edit something in links.cfg or admin.cgi or both?

Some of the admin.cgi coding is here:

# 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 "/~tfspark/links/cgi-bin/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";
print "Make sure they exist, permissions are set properly, and paths are set correctly.";
exit;
}


Might that help? Again please anyone help!!!

Quote Reply
Re: links 2.0 for spaceports? In reply to
In Reply To:
require "/~tfspark/links/cgi-bin/admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
Please read the instructions more carefully.

Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: links 2.0 for spaceports? In reply to
That is NOT a full path that you specified! Get my variables script at http://www.ace-installer.com/acevars.html, and that will tell you your path!!!! Wink

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: links 2.0 for spaceports? In reply to
Actually it IS a path.

All that needs to be done is use the full path not the relative one.

Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: links 2.0 for spaceports? In reply to
I did what everyone told me to do and yet still it did not work :(

This is the error I got this time:

Error including libraries: Can't locate /~tfspark/links/cgi-bin/admin/home2/tfspark/public_html/links/cgi-bin/admin/db.pl in @INC (@INC contains: /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 .) at admin.cgi line 28.

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

This is the coding I put for admin.cgi:

# 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 "/home2/tfspark/public_html/links/cgi-bin/admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
require "$db_lib_path/home2/tfspark/public_html/links/cgi-bin/admin/db.pl"; # Database Routines.
require "$db_lib_path/home2/tfspark/public_html/links/cgi-bin/admin/db_utils.pl"; # Database Support utilities.
require "$db_lib_path/home2/tfspark/public_html/links/cgi-bin/admin/admin_html.pl"; # Admin HTML routines.
};

if ($@) {
print "Content-type: text/plain\n\n";
print "Error including libraries: $@\n";
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.
elsif ($in{'delete_search'}) { &html_delete_search; } # Display the form to search for records to delete.
elsif ($in{'delete_form'}) { &html_delete_form; } # Display the form to pick records to delete.
elsif ($in{'delete_records'}) { &delete_records; } # Delete records.
elsif ($in{'modify_search'}) { &html_modify_search; } # Display the form to search for records to modify.
elsif ($in{'modify_mult_form'}) { &html_modify_mult_form; } # Display multiple records to modify at one time.
elsif ($in{'modify_form'}) { &html_modify_form; } # Display the form to pick record to modify.
elsif ($in{'modify_form_record'}) { &html_modify_form_record; } # Display the form to modify a record.
elsif ($in{'modify_record'}) { &modify_record; } # Modify the record.
elsif ($in{'modify_mult_record'}) { &modify_mult_record; } # Modify multiple records at once.
elsif ($in{'validate_form'}) { &html_validate_form; } # Display the Validation Form.
elsif ($in{'validate_records'}) { &validate_records; } # Validate records.
elsif ($in{'check_links'}) { &check_links; } # Display/Check to make sure links have matching catgories.
elsif ($in{'fix_links'}) { &fix_links; } # Fixes up any errors found in check links.
elsif ($in{'check_duplicates'}) { &check_duplicates; } # Display/Check for duplicate links.
elsif ($in{'html_mail_target'}) { &html_mail_target; } # Form to do targeted mass mailing.
elsif ($in{'html_mail_form'}) { &html_mail_form; } # Form to do mass mailing.
elsif ($in{'html_mail_update'}) { &html_mail_update; } # Form to do email updates.
elsif ($in{'html_edit_template'}) { &html_edit_template; } # Edit Templates
elsif ($in{'save_template'}) { &save_template; } # Save templates.
elsif ($in{'html_template_help'}) { &html_template_help; } # Template Help.
elsif ($in{'display'} eq 'navigation') { &html_navigation; } # Display HTML Header
elsif ($in{'display'} eq 'body') { &html_body; } # Display HTML Body
elsif ($in{'display'} eq 'top') { &html_top; } # Display HTML Top
else { &html_home; } # Display Frame Index page.

# &cgierr("Done"); # Uncomment this line for Debugging... Will tack on form variables and environment variables
# to the end of every page. Quite Useful.
}

Quote Reply
Re: links 2.0 for spaceports? In reply to
THIS:

In Reply To:
require 5.001; # Make sure we have at least perl 5.001.
require "/home2/tfspark/public_html/links/cgi-bin/admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
require "$db_lib_path/home2/tfspark/public_html/links/cgi-bin/admin/db.pl"; # Database Routines.
require "$db_lib_path/home2/tfspark/public_html/links/cgi-bin/admin/db_utils.pl"; # Database Support utilities.
require "$db_lib_path/home2/tfspark/public_html/links/cgi-bin/admin/admin_html.pl"; # Admin HTML routines.
is wrong.

Get rid of $db_lib_path

Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: links 2.0 for spaceports? In reply to
Additionaly, you can't build your links pages on your HTML server. You must build on your CGI server... and if I'm current enough, you only get 10MB of space there so you might as well get a new host.

Happy coding,

--Drew
http://www.camelsoup.com
ftp://ftp.camelsoup.com
Quote Reply
Re: links 2.0 for spaceports? In reply to
Following error:

Error Message : fatal error: Can't locate /category.def in @INC (@INC contains: /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 .) at admin.cgi line 55.

Script Location : admin.cgi


(And do u know of any free cgi host I could go for?)

Quote Reply
Re: links 2.0 for spaceports? In reply to
There really is no need to go for a free host Wink ImageLinkUSA (http://www.imagelinkusa.net) have deals from just $5.95. You can get domain names for almost nothing, although even the small package with ImageLinkUSA comes with a domain Wink

However, If you are still looking for a FREE CGI Host, trydoing a search for what you want at http://www.hostsearch.com/free_zone.asp Smile They have quite a nice directory of free hosts!

As for your error, it looks like it is just trying to find the file in the admin folder. Please post what you have in admin.cgi for the 'require' statements.

Hope that helps

Andy

webmaster@ace-installer.com
http://www.ace-installer.com