help with installing perl module WWW::Curl::Easy
Hi,
I'm not sure if this is the right section but is there an Easy patch to install WWW::Curl::Easy because trying to install it failed and it requires a dependency called curl-config.
I tried to install the perl module WWW::Curl::Easy on my server in the perl module section and it gave the following error message:
====================================
Checking C compiler....C compiler (/usr/bin/gcc) OK (cached Tue Jul 7 02:23:15 2020)
Tuned C compiler not available because it is not enabled....Done
Method: Using cpanminus
--> Working on WWW::Curl::Easy
Fetching
-
You may need to install that dependency from YUM first: yum install curl curl-devel ...then try installing the perl-mod 0 -
I believe you actually want the libcurl-devel package for this. [root@server ~]# rpm -ql libcurl-devel |grep curl-config /usr/bin/curl-config /usr/share/man/man1/curl-config.1.gz0 -
I believe you actually want the libcurl-devel package for this.
[root@server ~]# rpm -ql libcurl-devel |grep curl-config /usr/bin/curl-config /usr/share/man/man1/curl-config.1.gz
Hi Lauren, Can I install libcurl-devel via "Install an RPM" on WHM? Is that the same thing as your command line? Also, last night I found a webpage that said just do this: centOS: yum install curl-config Is that the same as your line of codes?0 -
Hello, On the CLI you would do: yum -y install libcurl-devel
curl-config is a part of this package and not present in the CentOS base repository separately so you wouldn't be able to just install it. You can also use the WHM>>Software>>Install an RPM UI to do this and libcurl-devel is present.0 -
Hello, On the CLI you would do:
yum -y install libcurl-devel
curl-config is a part of this package and not present in the CentOS base repository separately so you wouldn't be able to just install it. You can also use the WHM>>Software>>Install an RPM UI to do this and libcurl-devel is present.
Thanks for the explanation. I used that last yum command and then installed the perl moduled and it has worked.0 -
Hi, I just installed AlmaLinux v8.8.0 because CPANEL says CENTOS 7 is depreciating in 2024, and following the instructions here no longer applies. I used the command line "yum -y install libcurl-devel" and the proceed to installing Perl Module "WWW::Curl" and I still get the following error that the module isn't installed. What do I need to do to get this perl module installed? Please help! Checking C compiler....C compiler (/usr/bin/gcc) OK (cached Sat Jul 8 04:30:22 2023) Tuned C compiler not available because it is not enabled....Done Method: Using cpanminus --> Working on WWW::Curl Fetching Curl.xsc mv Curl.xsc Curl.c gcc -c -I/usr/include -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -DVERSION=\"4.17\" -DXS_VERSION=\"4.17\" -fPIC "-I/usr/lib64/perl5/CORE" Curl.c FAIL cpanminus failed with non-zero exit status: 1 All available perl module install methods have failed 0 -
[font="courier new">yum install perl-WWW-Curl ??? 0 -
yum install perl-WWW-Curl ???
What's the difference using that command line and installing it via the whm cpanel web page, isn't that the same?0 -
I'm not sure what whm cpanel web page you are referring to, but as far as I know, cPanel switched to binary perl a long time ago. The output you are showing is trying to compile the WWW::Curl module and it's not able to find something. [font="courier new">yum install perl-WWW-Curl will install WWW::Curl as a binary from your AlmaLinux's repositories. 0 -
I'm using cPanel Version 112.0.4. If it can't find something does that mean AlmaLinux is buggy or CPANEL is buggy? I went through the WHM Host to install it. Doesn't Cpanel install the binary version aswell? 0 -
Hello, perl-WWW-Curl exists in AlmaLinux V8. You need to be careful to keep the exact capitalization etc. It does not matter if you install the package via CLI or "Install Distro Package" in WHM, they both use the OS's package manager to install the package. You're just looking to install a package that cPanel/WHM does not need by default. 0 -
Hello, perl-WWW-Curl exists in AlmaLinux V8. You need to be careful to keep the exact capitalization etc. It does not matter if you install the package via CLI or "Install Distro Package" in WHM, they both use the OS's package manager to install the package. You're just looking to install a package that cPanel/WHM does not need by default.
How do I get WWW-Curl to work? I have a script that I run and it says it's missing WWW-Curl, and when I check in cPanel/WHM this perl module show's it's not installed.0 -
It looks like there is a big bug with CPANEL running on AlamLinux V8. I never had this problem with CENTOS 7. Hope CPANEL Staff can fix this ASAP! 0 -
Why not open a cPanel ticket? 0 -
Why not open a cPanel ticket?
Already opened by hosting team.0 -
What specific perl binary are you invoking in the script? What perl is being referred to in the shebang line? [font="courier new">[plain]# cat /etc/redhat-release AlmaLinux release 8.8 (Sapphire Caracal) # /usr/bin/perl -MWWW::Curl -e ';' Can't locate WWW/Curl.pm in @INC (you may need to install the WWW::Curl module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5). # yum -y install perl-WWW-Curl # /usr/bin/perl -MWWW::Curl -e ';' #[/plain] Not really sure why you're trying to compile a module that can be installed from the AlmaLinux repositories. Unless you are calling some funky version of perl. 0 -
It seems the cpanel team have managed to install WWW-Curl because I managed to run my script, but WHM/CPANEL doesn't display the module in the list of installed perl modules. Being able to see what's perl modules installed can be quite handy. The WHM/CPANEL is supposed to install it, if it doesn't there's a problem. I'm not sure how they installed it but I bet they used the CLI interface and ran some command. WHM/CPANEL is suppose to work effortlessy but it's not doing it's job and that's a problem! (It seems CPANEL on AlmaLinux is full of bugs) Oh, forgot to mention in answer to your question, it's just bog standard simple script that requires www-curl. 0 -
I try to avoid using the WHM as much as possible, so it's very valid to say that I don't have a lot of ideas as to what is going on in the WHM. If I had to guess, the whole "Install a Perl Module" system in the WHM is deprecated. Or at least abandoned to the point that it should be deprecated. There's really not a whole lot that goes on in pure perl any more in web hosting development. Most scripts are written in PHP these days. So I just really don't think there's a ton of focus on perl and perl modules by cPanel and the WHM interface. Looking at the Install a Perl Module page in the WHM, it would appear to only be listing perl modules installed at [font="courier new">/usr/local/share/perl5. Whereas, from the error message that I showed above, perl looks for modules in [font="courier new">/usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5, so a lot more places that just [font="courier new">/usr/local/share/perl5. When you [font="courier new">yum -y install perl-WWW-Curl it installs the module in [font="courier new">/usr/lib64/perl5/vendor_perl. Which is in the path that perl checks, but not in the path that the WHM Install a Perl Module page lists from. Why? I have no idea. Why does the WHM Install a Perl Module try to compile the module? Well, it says so right there on the page Note: Modules are installed directly from the CPAN repository. But why not use a yum repository to install it? Again, I don't know. This all leads me to believe that the whole WHM Install a Perl Module system has been abandoned or at least not looked at by cPanel in several years. When a particular section of a software suite is seldom used by the users, then that particular section becomes seldomly up kept by the developers of the software suite. That's just the way things are. 0 -
Cheers I read somewhere whm/cpanel is developed in perl. Is that true? 0 -
Honestly, it does not matter what language cPanel/WHM is written in. cPanel/WHM use their own "private" copy of PHP/perl on the server so it's not affected by the version(s) that the customer is running. Similarly, their requirements (modules) would be different that the server level ones. 0 -
cPanel is closed sourced, so what language the controlling binaries are written in is really a mystery. Still there is a strong visible influence of perl within cPanel. But that doesn't really have anything to do with how they offer perl. The cPanel backend (i.e. /cpanel, /whm, etc) is written for server administrators and website owners to use. This differs greatly from what a website owner may want to display on their website. Start naming all of the popular "scripts" that websites are built off of: WordPress, Joomla!, vBulletin, etc - they're all written in PHP. Certainly back in the 1990s and even the 2000s when PHP was in it's infancy, CGI and perl scripts were more popular (to be clear, CGI is a broad name for interfacing a client's website to the server's backend - CGI scripts do not have to be written in perl, but perl was a common CGI scripting language). But as the years have gone by, a lot (A LOT!) of this has shifted to PHP. That's not say that perl CGI scripts aren't in use any more, I'm sure there are, but it's not as common as it once was. If you did a survey of cPanel controlled websites and you found that 3 out of 100 are using perl CGI to control the dynamics of their website... how much time and expense do you really think cPanel is going to include in making perl CGI systems more accessible and user friendly for their users? It doesn't really matter what language cPanel is written in - just because one script/web app is using one language, doesn't mean every script/web app should be using that - doesn't mean that cPanel is going to spend a lot of time providing functionality to use that language. There was a time when Ruby on Rails came on the scene and that was going to be a killer development system. Every web hosting client wanted to know "do you provide Ruby on Rails support?" It was a buzz. But web hosting clients didn't realize that... they mostly just want to use pre-written scripts (i.e. WordPress) and they need a hosting platform that's going to allow that to run. There never really was a RoR pre-written script that web hosting clients could flock to. That doesn't mean that RoR isn't used in the web hosting industry. But if you're using RoR then you're probably developing in RoR. If you're developing in RoR then you know how to set up the framework to use RoR. It's not really cost effective for cPanel to spend a lot of time and money making that easy to use, when not a lot of people use it. 0 -
I think what I mean is, if CPANEL is still using it, they shouldn't depreciate it or make it difficult to access. These days I use perl mostly for backend stuff because it's easy for me to get a job done. It's also a reason why I'm still using CPANEL! 0 -
cPanel developers do not use the "Install a Perl Module" in the WHM. cPanel developers develop cPanel. A feature of cPanel is the "Install a Perl Module" function in the WHM. The two are not mutually inclusive. 0 -
Right then, I think I have exhausted this discussion. 0
Please sign in to leave a comment.
Comments
24 comments