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

iPhone 4 Carrier Unlock Finally Here

The wonderful people of iPhone-dev Team (or I think they're called just DevTeam now) has realeased their iPhone 4 carrier unlock. What this means is you can unlock the iPhone 4 s you've purchased from any locked countries like the U.S.(with baseband 1.59 ).  iPhone 3G and 3Gs also benefits from this release which unlocks phones with basebands 04.26.08 , 05.11.07 , 05.12.01 and 05.13.04 As an excerpt from their blog post : Version 1.0-1 of ultrasn0w works for: iPhone4 baseband 01.59 3G/3GS basebands 04.26.08, 05.11.07, 05.12.01 and 05.13.04 (If ultrasn0w doesn’t show when you search Cydia, add the repo:  repo666.ultrasn0w.com) Quickest solution to unlock your phones is to visit www.jailbreakme.com which uses an exploit to jailbreak your device, and once you get the Cydia app, download (or add the repository if you havent) ultrasn0w. Restart and enjoy carrier freedom. Perhaps another implication of this with the iPhone 4 market now is that those people selling iPhone 4