Skip to main content

The Art of Compiling in Linux

Most of the people complain about compiling programs in Linux. Particularly those applications which require getting your hands dirty by using shell commands.

I have been compiling eggdrops and emechs from my IRC days back then and PVPGN and running a game server. Im currently compiling an otserv in Fedora 9 and thankfully, the instructions are in Debian and Ubuntu: http://otfans.net/wiki/index.php/Compiling_OTServ_under_Ubuntu .. hey how bad can it be? You could still yum your way through the needed libraries.

Important thought before you start is to know the important libraries needed. Most of the time they are the -devel or -dev libraries since you are compiling a program right? But the problem is most of the -devel libraries are dependent to their parent application. Say for example mysql-devel is dependent to mysql.i368.. So nonetheless you have to install the pair.

An important thing in compiling.. remember to:
1.) Check the libraries needed by the program you are compiling
2.) always remember: ./configure, make, make install

People really wouldnt bother compiling their own and just getting the executables.. But thats not always the case.. If you have the source and the only executables are in windows exe.. what do you do? Thats where everything comes in..

With the source files, you could port it into different platforms as long as the libraries are supported.

Try it out yourself, get an eggdrop IRC bot and compile away.

Comments

Popular posts from this blog

Self Signed SSL Certificates

Ever wondered how to enable SSL or HTTPS on your site? If you dont want to pay for commercial SSL certificates, you could create self signed certificates for your site by following the instructions here: https://www.digitalocean.com/community/articles/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-12-04 The instructions in the site above will make your default site HTTPS enabled. If you prefer having a commercial SSL, save your certificate files and key files in your server and edit the location on the /etc/apache2/sites-enabled/default to point to the directory where you stored those files.

Moving to a New Linux Web Based Torrent Client

For years, I have been using TorrentFlux (url here) as my primary torrent client situated in my Ubuntu download server. But as time went on, the developers completely abandoned the development of TorrentFlux which led to several forks which I think is still insufficient for my needs. Main GUI of TorrentFlux Ive checked several options which runs on a GUI-less environment. Since my Ubuntu server is just running on command line to save precious memory, I needed something bare, simple and is packed with features. Installing uTorrent Server is pretty straight forward. Download. Uncompress. Run. This is better than the approach of TorrentFlux which you need to setup LAMP server and create a database. More often than not, it happens to me that some of the data in the DB gets corrupted. I normally just reinstall the whole thing again. Main GUI of uTorrent Server To further elaborate on the setup process, I've gotten an excerpt from this thread which, quite simply discusses ho...

OBS Black/Frozen Screen Issue

Recently I went back to streaming and tried to improve my setup and use Streamlabs OBS  (SLOBS), a variant of the popular Open Broadcaster Software (OBS) which includes a really nice app for iOS and Android which lets you control you broadcast. My only issue about SLOBS (and/or OBS) in general is when you stream some games, its a hit or miss experience. Most of the reported issues include a black screen (but with audio) or in my experience, frozen frames as I transition from one part of a game to another. I had the time to do some trial and error testing yesterday and listed below is the pre-requisites and some quick summary of my setup. Take note of the terminologies used throughout this post. Terminologies SLOBS/OBS - Streaming software, liberally used interchangeably in this post.  Source - This is where an input of OBS is coming from. This can be a webcam, computer screen, full screen application, a webpage, an image, etc. Display Capture - Captures your whole ...