FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > FutureQuest Site Owners (All may read - Only Site Owners May Respond) > Questions & Suggestions
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 03-29-2001, 06:05 PM   Postid: 33816
lbeachmike
Registered User

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Jul 2000
Location: Long Beach, NY
Posts: 39
Perl Modules on server?

Hi there -

Perhaps somebody can help me with the following items.  I am trying to install an API on my website which has relatively poor documentation, but I've got most of it figured out and working.  The following items are what I'm not clear on and are related to modules that are likely to already reside on your servers (incidentally, I am on Dexter.)

I am directed to install the following Perl Modules:

Crypt::SSLeay - a Perl Module for wrapping OpenSSL for LWP available at
  http://search.cpan.org/search?dist=Crypt-SSLeay

  LWP - The Perl library for www clients available at
  http://search.cpan.org/search?dist=libwww-perl

I am then instructed to install a customized module by following this set of instructions on a file in their package called "Makefile.PL":

perl Makefile.PL
   make
   make test
   make install

When I executed these four instructions, the first three were successful, but the fourth one failed and reported an error:

Warning: You do not have permissions to install into /usr/local/lib/perl5/site_perl/5.005/i686-linux at /usr/local/lib/perl5/site_perl/5.00503/ExtUtils/Makefile.PL line 61.

It also failed in an attempt to subsequently create a subdirectory in the perl library directory.

The instructions then go on to state:

"This should install MODULE.pm in the system Perl library.  (You will
need to have write access to this subdirectory when you 'make
install')

Alternatively, if you plan to install MODULE.pm somewhere other than
your system's perl library directory. You can type something like this:

 perl Makefile.PL PREFIX=/home/me/MODULE.pm INSTALLDIRS=perl"

Anyhow, I know that this is likely to be pretty basic stuff for somebody who has the familiarity with using Perl and the Perl libraries.  Unfortunately, this is one of my first experiences with utilizing Perl.

It is not clear to me if the first directory that reference the existing Perl libraries are supposed to be accessible to me or not.  I'm also not sure if their last recommendation is feasible, where I create a different directory for these modules to reside.  It seems as if all of the library files then need to be recreated there and I'm a little hesitent to take that approach.

Any help, advice or guidance that you can offer would be greatly appreciated.  Hopefully this is general enough to be clear.

Thanks.

Michael Kleinert
------------------
Michael Kleinert
CentralStation.com
mrk@centralstation.com
lbeachmike is offline   Reply With Quote
Old 03-29-2001, 06:49 PM   Postid: 33817
sheila
Site Owner
 
sheila's Avatar

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Aug 1999
Location: Metro Los Angeles Area
Posts: 7,398
I believe you are having a problem very similar to the one that I had, when I recently installed Python2.0 in my own space.

I didn't and do not have permission to install in the usual place, which is usr/bin or something like that. The key is to set the PREFIX to something that is a directory that you have permission to work in, like /big/dom/xyourdomain/ or something like that.

You can read about my situation with installing Python here:
http://www.aota.net/ubb/Forum3/HTML/001564-1.html

It links to further explanations off-site. I did eventually solve the problem and get it installed correctly. I hope this helps.

sheila is offline   Reply With Quote
Old 03-30-2001, 03:06 PM   Postid: 33818
Matt
Site Owner
 
Matt's Avatar

Forum Notability:
671 pts: Dignified Competence!
[Post Feedback]
 
Join Date: Nov 2000
Location: Birmingham, AL, US
Posts: 1,231
Hello Michael,

I had hoped to have a nice FAQ written up by now, but it's not quite ready for general consumption. Hopefully I can help you out with some of the basics in this post. I have been in a very similar situation before (read the gory details here: http://www.aota.net/ubb/Forum3/HTML/001515-1.html)

First, I notice that you specifically ask for Crypt::SSLeay.  
What I am about to say is based on correspondence with Terra concerning the SSLeay module. Terra is working on it, but it hasn't been maintained in a while and doesn't quite work with the current (as of when I inquired) implementation of the https protocol on the FutureQuest servers. Hopefully this will not take too long to get working together, but no guarantee has been made of it ever getting installed. Obviously Terra is a better person to update you on the progress than I am.

The integration between the Crypt::SSLeay module and https may mean that even if you manage to get this module successfully installed locally (which is what you want to do), it may break when you actually use it. Query http://service.futurequest.net/tech/support for the term "module" and click the first solution to learn how to find out whether a module has been installed or not.

FutureQuest will generally install modules from the CPAN library for you, if you ask. However, custom modules must be installed by you. If you are installing a Perl program/ module from a Makefile, you want to do a local installation. Makefiles generally assume that you have root access, which is why you are getting the permission violation errors. To specify that you want to install into a directory that you DO have permission to, take the following steps (> indicates command prompt):

Code Sample:
>perl Makefile.PL PREFIX=/big/dom/xACCOUNT <ENTER>
where ACCOUNT is specific to your directory.
>make
>make test


This step should be successful. If it is not, there is not much point proceeding to the next step. Things can get complex if you have to troubleshoot. If you do have problems, please post them.

Code Sample:
>make install


The program/ module should now be installed in your local directory. You can define a subdirectory by altering the PREFIX, but I have found that some modules don't install properly in a subdirectory.

Assuming that all the above went well, you now have to modify your scripts that use the module to look for the module in your local directory. To do this, add the following statement to the beginning of any CGI scripts requiring the custom installed module.

Code Sample:
use lib '/big/dom/xwebspacecreations/lib/perl5/site_perl/5.005/i686-linux/';


NOTE: You may need to modify the path if your module has been installed in a slightly different location. To find out whether the path is right, telnet to your account, cd to the directory containing your modified CGI script (i.e. cgi-bin or cgi-ssl), then type 'perl test.cgi' (without the quotes) where test.cgi is the name of your modified script. If you get an error saying the the module couldn't be found in your @INC list of paths, you will need to modify the path in your script.

This is general advice and if you can't get Crypt::SSLeay and LWP installed (they don't appear to currently be installed), it is doubtful that even if you get the other custom module installed locally that your script will work. If you need this script NOW, you may be better off looking for an easier to implement solution.

If anyone sees any errors/ has any corrections to this general advice for a local installation, please add them to this thread.

Good luck,
Matt

P.S. Check out http://www.aota.net/ubb/Forum3/HTML/001070-1.html for new info on SSLeay.
[This message has been edited by Matt (edited 03-30-01@3:16 pm)]
Matt is offline   Reply With Quote
Old 03-30-2001, 06:03 PM   Postid: 33819
Rich
Merchant Rep
 
Rich's Avatar

Forum Notability:
153 pts: Ambassador of Goodwill
[Post Feedback]
 
Join Date: Nov 1998
Location: Indiana, USA
Posts: 1,658
It has been a while since I worked with these modules, but...

(1) The LWP bundle is already installed on FQ servers.

(2) LWP::UserAgent will automatically use the underlying SSLeay modules for https connections if they exist.

(3) ==>uncertain<== I do not believe LWP::UserAgent relies on Crypt::SSLeay but rather Net::SSLeay.

I'll need to be doing some maintenance on one of my secure scripts soon, so I'll post back here once I recall/reconfirm the dependencies.

Rich

Rich is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 05:01 AM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.