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

ASCII UPLOADING

Quote Reply
ASCII UPLOADING
I have uploaded everything in ASCII mode and re uploaded it again and again, this is the error I get when trying to run the admin.cgi:
Error including libraries: (Maybe you didn't strip carriage returns after a network transfer?)

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


Quote Reply
Re: ASCII UPLOADING In reply to
Hi

How did you upload ftp, network?

Have you checked the permissions of all files a list is available in readme.txt?

Have you set the paths in links.cfg?

I have pasted a file below, simply copy and paste, change the first line to your perl path, and then run from your browser, this will display the paths to your folder, it may help you set up links.cfg

#!/usr/bin/perl

use strict;

print "Content-type: text/html\n\n";


my $directory=$ENV{'SCRIPT_FILENAME'};

my $dir=substr ($directory,0, -10);

my $root_dir=$ENV{'DOCUMENT_ROOT'};

my $base_dir=$ENV{'SCRIPT_NAME'};

my $base_dir=substr ($base_dir,0, -10);

print qq~<font face="verdana" color=blue><h3>FoyleNet Script Tools</h3>
<p><font face="verdana" size=2> This file will simply help you with the
directory paths on your server. Below are a few paths that may assist
you install your cgi scripts.</font></p>
<table width=95%><font size=2>
<tr>
<td><font face="verdana" size=2>
You are using perl version
</td>
<td><b><font face="verdana" size=2>
$] </b>
</td>
</tr>
<tr>
<td> <font face="verdana" size=2>
Full path to this directory
</td>
<td> <b><font face="verdana" size=2>
$dir </b>
</td>
</tr>
<tr>
<td> <font face="verdana" size=2>
The root directory
</td>
<td> <b><font face="verdana" size=2>
$root_dir </b>
</td>
</tr>
<tr>
<td> <font face="verdana" size=2>
The base path
</td>
<td> <b><font face="verdana" size=2>
$base_dir </b>
</td>
</tr>
</table>
<p><center><font face="verdana" size=1>
<a href="http://www.foylenet.com/scripts/">FoyleNet Scripts
</a></font></center>~;

Incidentally you have changed the first line in the cgi files to the perl path on your server?

Good Luck

DavyC