Technology Errors

Error: Missing Dependency: libffi.so.5 is needed by package python26-2.6.2-2.i386

One of the annoying things about CentOS Linux is the current dependency on Python version 2.4. Typically I install Python version 2.6 and compile new programs using the 2.6 version of python instead of the 2.4 version. Recently on a server I had just installed CentOS 5.4 on I had a dependency issue when attempting to install python version 2.6 from the CHL repository. Below I display the error and describe how to install the libffi package on CentOS Linux.

Technology Errors

/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

When compiling an application called pyrit on a new CentOS Linux server I ran into an issue with some libraries. Pyrit is an application used to perform dictionary attacks against WPA handshakes and can be really useful for security auditing. The error below is easily resolved on any version of Linux by simply installing the glibc-devel RPM package. Below I display the error in detail as well as how to resolve the error on CentOS by installing the glibc-devel RPM using the Yum package manager.

Technology Errors

curl: option –libcurl: is unknown, curl: try curl –help for more information

I have been working on setting up some automated tasks at work that use curl to connect to FTPS on a remote server. On one of the development servers I was testing from I attempted to issue a curl command using the “–libcurl” switch which returned an error. This command was recommended by a coworker as a start to set up the automated tasks to connect to FTPS on the remote server using curl. Below I describe the error in detail, the cause of the error, and how to resolve the error.

Technology Errors

Yum Error: Package curl-7.20.0-1.i386.rpm is not signed, Install A Yum Package That Is Not Signed

Today I have been working on a project for work that involved accessing FTPS using curl. I needed the curl –libcurl switch which is not available in curl 7.15 so I needed to upgrade curl on the CentOS server I was working on. The problem is that there are not any repos with newer versions of curl available so then I set out to create my own curl RPM package. I was able to do this while learning many things along the way such as signing RPM packages. The first revision of my curl RPM package was not signed but I wanted to go ahead and install it anyway so below I explain installing unsigned RPM packages using yum.

Technology Errors

RPMBuild Error: error: Installed (but unpackaged) file(s) found

It has been a long time since I built an RPM using a packages source so I had to brush up on my knowledge there before attempting to build an RPM package for CentOS today from curl’s source. In the process of building the curl RPM package for CentOS I received an error from rpmbuild stating that there was a rather large list of files that were unpackaged. Below I describe the rpmbuild unpackaged error along with a way to resolve the problem. I would love to hear any feedback people have on RPM building since it is not something I do on a regular basis my knowledge is limited.