I'm beginning to believe that Perl is crap.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting I'm beginning to believe that Perl is crap.
# 1  
Old 03-21-2011
I'm beginning to believe that Perl is crap.

Must every module be compiled? Why is it Math::GMP never installs? I was simply trying to use Net::SSH::Perl and it's driving me nuts. Granted, I am working as a user with limited privileges, but this is ridiculous. I even tried creating an ubuntu virtual machine, going in as root, and Math::GMP still doesn't install. I am so frustrated with this crap. I've wasted a good day on this. I never thought going from shell script to perl would be such a pain in the butt.

Am I the only one this kind of stuff happens to or am validated in my rant?
# 2  
Old 03-21-2011
No, not every module has to be compiled. But Net::SSH::Perl has to use some quite large integers for cryptography, and thus need Math::GMP, which in turn depends on the GNU Multiple Precision (GMP) library.

But even as an unprivileged user installation should work. Install GMP from source first, using --prefix to have it install into a directory you have access to. Afterwards, unpack Math::GMP. You might have to edit Makefile.PL to have it search the appropriate directory for the GMP lib. Run perl Makefile.PL LIB=/path/to/your/directory to have Math::GMP install outside of the regular root.

And personally, I think your rant isn't really valid, as your problem isn't really with Perl, but with 1 module out of ~20.000.
# 3  
Old 03-21-2011
maybe that's what I'm doing wrong. I use PREFIX= vs. LIB=. I'll try that. Thanks for your response. And please excuse the rant. I needed to vent. This thing is driving me nuts.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Beginning learner

Hi guys, New member here, also new student! I'm just starting the Shell Programming, currently in chapter four in the Book in Unix, Linux, and OS X by Stephen G. Kochan & Patrick Wood (4th edition). I'm needing a little help with other possible ways to shorten this shell command: // ... (1 Reply)
Discussion started by: shiver
1 Replies

2. Programming

Beginning svn

I had hard time to understand svn, and asked my admin who said I was over thinking and recommend remember the 5~6 commands to do as told. But I am so lost when the situation changed a little bit. For example, I am in my local box under my project folder: /home/yifangt/svn/ where there are two... (5 Replies)
Discussion started by: yifangt
5 Replies

3. Shell Programming and Scripting

What do people think of the "Beginning Perl" book for learning Perl?

Seems like it's written out pretty well for a beginner to learn, any thoughts or recommendations for other books? I'd post the link but I can't do that yet. The book is called "Beginning Perl" by Simon Cozens (2 Replies)
Discussion started by: budfoxcat
2 Replies

4. Shell Programming and Scripting

Finding BEGINNING & ENDING positions of sequentially increasing sublists from a perl numeric array

I have got an Perl array like: @array = (1,2,3,4,5,6,1,2,3,4,1,2,1,2,3,4,5,6,7,8,9...............) This numeric sequence will be always sequentially increasing, unless it encounters, The beginning of the new sequentially increasing numeric sequence. SO in this array we get sequentially... (5 Replies)
Discussion started by: teknokid1
5 Replies

5. Programming

Beginning C++

I want to learn C++ ! :) I have basic programming knowledge with python and perl. Does anyone know of any great beginner tutorials for C++? (1 Reply)
Discussion started by: cbreiny
1 Replies

6. Shell Programming and Scripting

How to substitute brackets in the beginning of string in perl?

Hi, I have a string like this user can specify different query sets that is why "or" is mentioned: $string="]("; or $string="](("; or $string="]((("; or $string="]((((("; (1 Reply)
Discussion started by: vanitham
1 Replies

7. UNIX for Dummies Questions & Answers

the very beginning

Actually, I had my first problem before even BEGINNING using my FreeBSD. The installation guide said I should run the rawrite tool and should do something like A> rawrite if i put the the file I want to image-copy and the rawrite.exe in the same directory somewhere. OK done that. Next it asks... (6 Replies)
Discussion started by: Mudrack
6 Replies

8. IP Networking

Apache: In the beginning...

:D Hello Everyone, This is my first post on this forum, and I a already like it :-) As you can tell I am a complete newbie to Apache. My mission is to setup a web server on my Suse Linux 8.1 box, initially for test purposes, and then if my ISP provider permits, then to allow other poeple... (10 Replies)
Discussion started by: bionicfysh
10 Replies

9. Shell Programming and Scripting

My crap PERL program

Hey all, I've been trying to learn Perl on my BSD box. When it came to printing the files out, it bothered me that the lines weren't numbered. So here's my little *crap* claim to some-form-of-fame Perl script which numbers files: ... (9 Replies)
Discussion started by: WIntellect
9 Replies
Login or Register to Ask a Question