LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-21-2006, 02:28 PM   #1
slang830
LQ Newbie
 
Registered: Aug 2006
Posts: 9

Rep: Reputation: Disabled
How do I download and install a Perl module?


I'm installing Webmin on an Ubuntu 6.06 server and I keep getting "access denied" msgs. I checked the miniserv.error log and it says that Authen::PAM is required and not installed.

My 2 Qs are:

How do I get that from CPAN using the command line?

How do I then install it?

Any help much appreciated - thanks in advance folks.
 
Old 08-21-2006, 05:57 PM   #2
slang830
LQ Newbie
 
Registered: Aug 2006
Posts: 9

Original Poster
Rep: Reputation: Disabled
Still trying to crack this.

I tried apt-get install libauthen-pam-erl but then I got the following errmsg:

'No candidate version found for libauthen-pam-perl'

Having no luck, I then tried cpan> install Authen:PAM which ended with the msg:

'C compiler cannot create executables'

any ideas anyone?
 
Old 08-21-2006, 06:44 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It could be that you need to use Authen::PAM instead of Authen:PAM. Or, you could try this:
Code:
wget http://search.cpan.org/CPAN/authors/id/N/NI/NIKIP/Authen-PAM-0.16.tar.gz
tar -zxf Authen-PAM-0.16.tar.gz
cd Authen-PAM-0.16
perl Makefile.PL && make && make test
su -
# cd to the Authen-PAM-0.16 directory
make install
I've left out the dependency checks, etc...
 
Old 08-22-2006, 01:01 PM   #4
slang830
LQ Newbie
 
Registered: Aug 2006
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by gilead
It could be that you need to use Authen::PAM instead of Authen:PAM. Or, you could try this:
Code:
wget http://search.cpan.org/CPAN/authors/id/N/NI/NIKIP/Authen-PAM-0.16.tar.gz
tar -zxf Authen-PAM-0.16.tar.gz
cd Authen-PAM-0.16
perl Makefile.PL && make && make test
su -
# cd to the Authen-PAM-0.16 directory
make install
I've left out the dependency checks, etc...
Sorry that single colon was a typo in my post but not in the command. Thanks for your reply, I tried your advice but still getting errmsgs i.e. "cannot find the pam_appl.h file" - see below:


$ perl Makefile.PL && make && make test

Checking if your kit is complete...
Looks good
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for pam header files in... no
configure: error: cannot find the pam_appl.h file
Error in configuring the Authen::PAM module.
 
Old 08-22-2006, 02:40 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Do you have PAM installed? In the Pre-requisites section of the README it mentions that it's required...
 
Old 08-22-2006, 03:48 PM   #6
mastrboy
Member
 
Registered: Aug 2005
Distribution: Debian, OpenBSD, PFsense
Posts: 73

Rep: Reputation: 15
tryed the following?
Code:
perl -MCPAN -e 'shell'
install Authen::PAM
or just

Code:
perl -MCPAN -e 'install Authen::PAM'
 
Old 08-22-2006, 07:56 PM   #7
slang830
LQ Newbie
 
Registered: Aug 2006
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mastrboy
tryed the following?
Code:
perl -MCPAN -e 'shell'
install Authen::PAM
or just

Code:
perl -MCPAN -e 'install Authen::PAM'
Yep I've tried both of these and this is the errmsg displayed at the very end of that installation:

Checking if your kit is complete...
Looks good
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for pam header files in... no
configure: error: cannot find the pam_appl.h file
Error in configuring the Authen::PAM module.

EDIT:

Solved it - big thx to Kernelpanicked

I also had to install libpam-dev

then

cd .cpan/build/Authen-PAM-0.16/

and

perl Makefile.PL && make && make test

RESULT!!

Thanks to all for assistance and advice given.

Last edited by slang830; 08-22-2006 at 08:22 PM.
 
Old 08-18-2008, 06:28 AM   #8
wester55
LQ Newbie
 
Registered: May 2006
Posts: 1

Rep: Reputation: 0
Install Development files for PAM:
apt-get install libpam0g-dev
Then try again.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl Module cant Install sohaib Red Hat 6 12-02-2005 09:22 AM
Install perl module mosh Programming 2 06-21-2004 12:12 PM
Download Perl-Lisp Module tuxfood Programming 0 06-15-2004 02:53 AM
Perl and GD module install problem timfair Linux - Software 0 09-17-2003 08:47 PM
perl module install? DKY Linux - Newbie 33 08-04-2003 01:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration