|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
||||
|
||||
|
Install module from Linux command line
I need to SSH into my server and install a module. Looking at the attached image, could someone tell me where I want my shell access when I log in so I can use perl -MCPAN -e shell?
The only things I can find say the "bash" shell, but that only narrows it down a little for me. I will forbid shell access when I'm finished.
__________________
print qq|Here I am\n| unless -e 'mySocialLife'; |
|
#2
|
|||
|
|||
|
Presuming it's a linux box your attaching to it's most likely to be "/bin/bash".
__________________
"Badges? We ain't got no badges. We don't need to badges! I don't have to show you any stinkin' badges!!" |
|
#3
|
||||
|
||||
|
Oh sorry.. yes, it's a Linux server. Here's what I get from your suggestion, which I thought was what I did before:
Quote:
Oh well.. I could swear that I've used CPAN on this server before. |
|
#4
|
|||
|
|||
|
Why don't you just install using the cpan interface (just type cpan at the command line prompt), then type "install <modulename>"<CR>
Presuming you have root/admin access to do this. ![]() |
|
#5
|
||||
|
||||
|
[QUOTE=stonyt10]Oh sorry.. yes, it's a Linux server. Here's what I get from your suggestion, which I thought was what I did before:
/QUOTE] Doesn't look like you're logged in as root.
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month |
|
#6
|
||||
|
||||
|
Yeah.. it seems like no matter what access I give myself I still don't have permission. I will consult a Plesk/Linux forum because this does not seem to be a Perl install issue anymore.
Thanks for your responses! |
|
#7
|
||||
|
||||
|
I got help from the Linux forum and got it working again. I was totally forgetting to log in as superuser. Here was the solution in case anyone is interested:
- Set remote access to /bin/sh - At the prompt type su [enter] - Enter your password - Enjoy! |
|
#8
|
||||
|
||||
|
Quote:
That's exactly what I said . root is the superuser account. Glad you got your issue fixed. |
|
#9
|
||||
|
||||
|
If you would have just mentioned the su command..
I haven't used Linux since college and I'm s..l..o..w |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Install module from Linux command line |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|