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

I broke it moving from Linux to Windows 2000

Quote Reply
I broke it moving from Linux to Windows 2000
I'm a newbie when it comes to programming. I can alter perl and cgi but I can't write it. I have a couple sites that use Links 2.0. When they were on my Linux machine, they worked great, never had a problem. Now that they are on a Windows 2000 server, they are dead. I've tried for WEEKS to get this working. I've had computer geek friends take a look at it (ok, so none had a vast amt of perl or cgi knowledge obviously). I really need this working. Right now I have it on 2 different sites and am getting 2 different errors. Both are on the same server. And I can't open the admin program either so can't rebuild anything. Can see the homepage and categories just fine, even subcats and links, but go to click on the links or Add, Modify, etc and nothing but errors. Here are the sites:

http://www.sunsetangel.com/Links

http://www.cherubs-cdh.org/Links

I am lost! Here is the path info to the first one -

# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "X:/Sites/www/sunsetangel/cgi-bin/links/admin";
$db_dir_url = "http://www.sunsetangel.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:/Sites/www/sunsetangel/html/Links";
$build_root_url = "http://www.sunsetangel.com/Links";

I have checked and double checked and no typos that I can see. There's no .com on the path, and Sites is capitalized.

What am I doing wrong? Any advice appreciated, I'm losing my mind on this one.
Quote Reply
Re: [sunsetangel] I broke it moving from Linux to Windows 2000 In reply to
I found one problem (had to associate the .pl and .cgi file extensions with perl.exe DUH!). Now getting the same error on both domains:

Error including libraries: Can't locate
/var/www/virtuals/sunsetangel.com/cgi-bin/links/admin/db_utils.pl in @INC (@INC
contains: X:\Ds Sites\www\sunsetangel\html\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:\Ds Sites\www\sunsetangel\html\cgi-bin\links\jump.cgi line
35.


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

What am I doing wrong? I have read this over 50 times and it's like Greek. What is @INC?
Quote Reply
Re: [sunsetangel] I broke it moving from Linux to Windows 2000 In reply to
Ugh, still no progress. Here is my links.cfg:

# -------------
# 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:\Dawns Site\www\sunsetangel\cgi-bin\links\admin";
$db_dir_url = "http://www.sunsetangel.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:\Dawns Sites\www\sunsetangel\html\Links";
$build_root_url = "http://www.sunsetangel.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'm getting error- Error including libraries: Can't locate /var/www/virtuals/sunsetangel.com/cgi-bin/links/admin/db_utils.pl in @INC (@INC contains: X:\Dawns Sites\www\sunsetangel\html\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:\Dawns Sites\www\sunsetangel\html\cgi-bin\links\jump.cgi line 35.

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



what's with the /var/www/virtuals... stuff?
Quote Reply
Re: [sunsetangel] I broke it moving from Linux to Windows 2000 In reply to
At the top of the .cgi scripts, have a look for;

lib '/var/www/virtuals/sunsetangel.com/cgi-bin/links/admin/';

...or similar. Replace the paths with your new ones.

That should do the trick :)

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!