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

Error including libraries

Quote Reply
Error including libraries
hey i've read what everybody else has done to fix this problem and its not working for me though. i've checked all permissions and still no go... Error including libraries: Can't locate /home/mrorlandofl/www/cgi-bin/links/admin/links.cfg in @INC (@INC contains: /usr/local/lib/perl5/5.00503/sun4-solaris /usr/local/lib/perl5/5.00503 /usr/local/lib/perl5/site_perl/5.005/sun4-solaris /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.


MY ADMIN.cgi

require 5.001; # Make sure we have at least perl 5.001.
require "/home/mrorlandofl/www/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.

and all of my CGI files have added require "/home/mrorlandofl/www/cgi-bin/links/admin/links.cfg
instead of what was up there before. what else can i do.


LINKS.CFG looks like

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

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/links/pages";
$build_root_url = "http://mrorlandofl.com/links/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";


Quote Reply
Re: Error including libraries In reply to
USE FULL PATHS IN LINKS.CFG

$db_script_path = "/cgi-bin/links/admin";
$build_root_path = "/links/pages";


I'm afraid the conclusion is that in fact you HAVE NOT read any other posts at all because this is pointed out more times that anything else so if you had read anything like you claim then you would have discovered this.

I suggest you search or search harder next time!


Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Error including libraries In reply to
well actually i already tried that a few times. the one i showed you was what i thought was how it looked before i edited that. now this is what it looks like and there's still the same message PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/cgi-bin/links/admin";
$db_dir_url = "http://mrorlandofl.com/cgi-bin/links/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/links/pages";
$build_root_url = "http://mrorlandofl.com/links/pages";

Quote Reply
Re: Error including libraries In reply to
You obviously don't want to fix this problem because you aren't paying any attention to what I'm saying.

I can't make it any clearer so good luck.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Error including libraries In reply to
sorry paul but obviosly if i new what i was doing i would not have put something up here. i do apologize. all i was asking is what i messed up on. i was thinking that you wanted me to put $db_script_path = "/cgi-bin/links/admin";
$build_root_path = "/links/pages"; in that file and thats what i did instead of what i had


Quote Reply
Re: Error including libraries In reply to
No I meant REPLACE them with the FULL PATH version.......

$db_script_path = "/cgi-bin/links/admin";
$build_root_path = "/links/pages";


$db_script_path = "/FULL/PATH/TO/cgi-bin/links/admin";
$build_root_path = "/FULL/PATH/TO/links/pages";


Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Error including libraries In reply to
okay paul thanks for your help but still i get Error including libraries: Can't locate /home/mrorlandofl/www/cgi-bin/links/admin/links.cfg in @INC (@INC contains: /usr/local/lib/perl5/5.00503/sun4-solaris /usr/local/lib/perl5/5.00503 /usr/local/lib/perl5/site_perl/5.005/sun4-solaris /usr/local/lib/perl5/site_perl/5.005 .) at admin.cgi line 27.
as an error. if you could show me an example as far as what i'm typing thats wrong that would be nice.

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

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/mrorlandofl/www/links/pages";
$build_root_url = "http://mrorlandofl.com/links/pages";

ADMIN.CGI

require 5.001; # Make sure we have at least perl 5.001.
require "/home/mrorlandofl/www/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.



Quote Reply
Re: Error including libraries In reply to
You are screwing up your full paths in both the links.cfg and admin.cgi files.

Look at what you have again:

links.cfg
$db_script_path = "/home/mrorlandofl/www/links/cgi-bin/links/admin";

admin.cgi
require "/home/mrorlandofl/www/cgi-bin/links/admin/links.cfg";

For your benefit, I bolded the codes that are inconsistent.

Regards,

Eliot Lee
Quote Reply
Re: Error including libraries In reply to
okay i changed them too "/home/mrorlandofl/www/cgi-bin/links/admin"; and "/home/mrorlandofl/www/cgi-bin/admin/links.cfg. and i'm guessing its not correct because i'm getting that same error message. can u show me an example of what its supposed to look like? i have all my stuff loaded up under mrorlandofl.com/cgi-bin/links. i'm sorry dude i'm obviously a newbie at this kind of stuff

Links.cfg
PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/home/mrorlandofl/www/cgi-bin/links/admin";
$db_dir_url = "http://mrorlandofl.com/cgi-bin/links/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/mrorlandofl/www/links/pages";
$build_root_url = "http://mrorlandofl.com/links/pages";

ADMIN.cgi
require 5.001; # Make sure we have at least perl 5.001.
require "/home/mrorlandofl/www/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.


Quote Reply
Re: Error including libraries In reply to
To find your ABSOLUTE FULL PATH, do the following (as stated quite a few times in the forums as recently as last week)...

1) Access your web account via telnet. Don't know what telnet is? Search Google (www.google.com) for telnet.
2) Then in the command line when you login via telnet, type in the following command:

Code:

pwd


or simply

Code:

dir


3) Then with your mouse, highlight the FULL PATH that is shown and copy it.
4) Then open your LINKS files (like links.cfg and admin.cgi), and replace the FULL PATH you are using with the one that you found via telnet.

If you don't have telnet access, you can type in the same command line codes via WS_FTP or other FTP programs to find your FULL PATH. Any of this too complicated? Then contact your hosting company for the correct ABSOLUTE FULL PATH!

Best of luck!

Regards,

Eliot Lee
Quote Reply
Re: Error including libraries In reply to
You are STILL USING THE WRONG PATHS BETWEEN YOUR FILES...Look again:

links.cfg
$db_script_path = "/home/mrorlandofl/www/cgi-bin/links/admin";

admin.cgi
require "/home/mrorlandofl/www/cgi-bin/admin/links.cfg";

Do you even see the inconsistent paths?????? I don't know how to make it more clearer.

Regards,

Eliot Lee
Quote Reply
Re: Error including libraries In reply to
hey thanks for the help its working now besides on problem. when i go to add a link i get this message

CGI ERROR
==========================================
Error Message : Admin Email Address Not Defined in config file!
Script Location : add.cgi
Perl Version : 5.00503

Form Variables
i did a search for ADMIN EMAIL ADDRESS NOT DEFINED and nothing really helped me out there. i was wondering if you had any last suggestions

Quote Reply
Re: Error including libraries In reply to
I don't mean to be offensive, but come on, are you seriously telling me that you honestly can't figure out what that error means?

Admin Email Address Not Defined in config file

Please read the setup instructions and links.cfg more thoroughly in future....

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = '';






Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/