Ghansham Mahajan » Linux » apxs:Error: Command failed with rc=65536
« How to Disable Eximstats on WHM/cPanel
Incorrect key file for table ‘/tmp/mysqltmp/#sql_XXXX_0.MYI’; try to repair it »
By Ghansham | June 12, 2014 — 7:08 am |December 26, 2020 Linux, Security
Today, I just compiling the apache module for our website requirement and we are getting error “apxs:Error:“. If you are compiling apache (httpd) module and it’s gives error : “apxs:Error: Command failed with rc=65536” then follow the below steps and resolve the issue.
Error : “apxs:Error: Command failed with rc=65536
Here is the Solution :
You need to Install “libtool” application.
For Centos Or Redhat :
yum install libtool
For Ubuntu :
apt-get install libtool
Enjoy 🙂
Related
Bookmark the permalink.
« How to Disable Eximstats on WHM/cPanel
Incorrect key file for table ‘/tmp/mysqltmp/#sql_XXXX_0.MYI’; try to repair it »
8 Responses to apxs:Error: Command failed with rc=65536
-
Pingback: lowest price on viagra
-
Pingback: where to buy ciprofloxacin
-
Pingback: asthma inhalers for sale online
-
Pingback: naltrexone price canada
-
Pingback: viagra online prescription free
-
Pingback: generic cialis available
-
Pingback: best generic viagra websites reviews
-
Pingback: discount viagra no rx
Bug 10860
— apxs:Error: Command failed with rc=65536
Summary:
apxs:Error: Command failed with rc=65536
|
|
||||||||||||||||||||||||||||||||||||||||||
|
Note |
You are here
Home/Forums/Support/compiling apache module gives «apxs:Error: Command failed with rc=65536»
Hello,
I’m totally new to Turnkey Linux (or any distribution of Linux for that matter) so I really need the help here.
Anyway, I’m using Turnkey Linux LAMP and I’m trying to compile mod_xml2enc for Apache 2. Problem is, I keep getting the error below:
/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static i486-linux-gnu-gcc -prefer-pic -DLINUX=2 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/xmltok -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/lib/libxml2 -I. -c -o mod_xml2enc.lo mod_xml2enc.c && touch mod_xml2enc.slo /usr/share/apr-1.0/build/libtool: line 970: i486-linux-gnu-gcc: command not found apxs:Error: Command failed with rc=65536
This appears after I run this command:
apxs2 -c -I/usr/lib/libxml2 -I. -i mod_xml2enc.c
At first I thought it was a problem with missing packages. So installed apache2-prefork-dev and apache2-threaded-dev. (I got this idea from searching multiple sources.)
I’ve been at it for almost the whole day now and I think I’ve exhausted the searching powers of google, so I’m really desperate.
Anyone have any idea what’s going on? I’d appeciate the help.
Hello,
I would like to package modsecurity-apache for Archlinux but I am encountering the following issues :
./configure --prefix=/usr --with-libmodsecurity=/usr/lib checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes configure: looking for Apache module support via DSO through APXS configure: found APXS at /usr/sbin/apxs configure: looking for libmodsecurity configure: error: couldn't find libmodsecurity
make DESTDIR="$pkgdir/" install ... /usr/share/apr-1/build/libtool --mode=install install ./src/.libs/mod_security3.so /usr/lib/httpd/modules/ libtool: install: install ./src/.libs/mod_security3.so /usr/lib/httpd/modules/mod_security3.so install: cannot create regular file '/usr/lib/httpd/modules/mod_security3.so': Permission denied apxs:Error: Command failed with rc=65536
The workaround for configure is :
V3LIB=/usr/lib/libmodsecurity.so ./configure --prefix=/usr --with-libmodsecurity=/usr/lib
The workaround for install
is to patch the makefile to remove the -i
flag of the apxs
command and do a manual copy to the expected destination.
Could you consider fixing the configure script, please, and honor the DESTDIR
variable at make install
stage ?
Thank you very much in advance !
Cheers.
[ Linux — CentOS — Apache 2.2 — mod_cloudflare — apxs2 ]
I have changed my nameservers to point to CloudFlare. The problem is that all the IP addresses are coming in as CloudFlare’s. This is no good, because I have to monitor and block some specific traffic. mod_cloudflare is supposed to resolve this but I have been unable to get this installed. The command in the documentation uses apxs2. I can’t figure out how to install this, or if it just means for ‘apache 2.4’. I’m running 2.2.3, and I can use ‘apxs’.
When I run:
apxs -aic mod_cloudflare.c
I get the error
apxs:Error: Command failed with rc=65536
Does this mean I need apxs2 or something else? How do I get mod_cloudflare working on my server?
I appreciate any help, the documentation is vague and limited.
asked Oct 19, 2012 at 17:02
10
A bit late to the party, but I received the error:
libtool: install: cp .libs/mod_cloudflare.so /usr/lib64/httpd/modules/mod_cloudflare.so
cp: cannot create regular file '/usr/lib64/httpd/modules/mod_cloudflare.so': Permission denied
apxs:Error: Command failed with rc=65536
And the reason, as stated in the error, is due to Permission denied
.
I was able to execute the command with sudo
:
sudo apxs -a -i -c mod_cloudflare.c
answered Jul 4, 2018 at 18:01