Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Searcg.cgi not working

Quote Reply
Searcg.cgi not working
I finally updated from links 1.1 to 2.0.
After wrestling with it a little bit, I finally got it to build the pages using my old data. When I tried to search I got the following message: Error including libraries: Can't locate /usr/www/homepage/httpd/htdocs/ links/admin/links.cfg in @INC (@INC contains: /usr/www/homepage/httpd/cgi-bin /usr/local/lib/perl5/i386-freebsd/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-freebsd /usr/local/lib/perl5/site_perl .) at /usr/www/homepage/httpd/cgi-bin/search.cgi line 36.

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

I'm pretty sure I got the paths and permissions correct. Also when I tried to run the upgrade.pl script, the text of the script just appeared in my browser but the script wasn't executed.

I would be grateful if you could give me any advice. I checked and perl5 is installed on my server in the proper location, I tried withe it listed both as perl and perl5, but both didn't work.

Thanks in advance for your help,
-jfk

------------------
-John F. Kennedy
Webmaster Homepage Now
http://www.homepagenow.com
Quote Reply
Re: Searcg.cgi not working In reply to
 
Quote:
Also when I tried to run the upgrade.pl script, the text of the script just appeared in my browser but the script wasn't executed.

Are you sure?

1. Copy upgrade.pl to Links v2 admin/data directory
2. chmod upgrade.pl to 755.
3. chmod the admin/data directory to 777.
4. Copy Links v1 links.db and linksid.txt files to Links v2 admin/data directory
4. Execute the upgrade.pl script.
5. Rename (mv) links.db to links1.db
6. Rename (mv) links2.db to links.db

If everything went right, you should now have a workable Links 2 links.db file. The above instructions assume you have not added any fields to Links v1 links.db in links.def.

7. Copy your Links v1 categories.db and categoryid.txt files to Links v2 admin/data directory.
8. Load categories.db into text editor and globally replace all NULL entries with nothing.

You should now be upgraded.

Quote:
Error including libraries: Can't locate /usr/www/homepage/httpd/htdocs/ links/admin/links.cfg

Unless something went wrong when you cut and pasted the error message, you have a blank space in your path right after "htdocs/". That might be causing your problem.