![]() ![]() Next we will need to extract the tarball. This will download and save the source as in your current directory. When you are ready go ahead and run: wget -O curl-7.32.0.tar.gz Just remember it should be the link to the tar.gz file. You can replace the url in the next command with current version of curl if you want. There are a lot of different ways to download the source, but in this example we will use the tarball available from the curl website. The first thing we need is to download the curl sourcecode. Getting and Compiling the Source on a VPS Downloading the Tarball You will however need root or sudo access on the VPS you are using, to install the compiled source afterwards. Since we in this example are compiling curl you should have everything you need. When compiling packages yourself you should always check the documentation, and make sure you have the required packages installed beforehand. ![]() When using apt or another package manager, it usually handles this for you. Some packages requires you to have some dependencies installed in order to be compiled or to be run afterwards. To install this on Debian and Ubuntu run: apt-get install build-essentialĪnd on CentOS run: yum groupinstall "Development Tools" To compile sources on Linux, you will need the package called "build-essential" on Debian-based systems and "Development Tools" on CentOS, as it contains the gcc/g++ compilers and libraries required to compile packages. ![]() The basics used in this example applies to the majority of packages, and can be applied in most cases. In this example we will be compiling and installing curl from source. But once in a while it happens that you need a package that isn't available from a repository, or sometimes you just need a newer, more bleeding-edge version than the one there is. When working on a Linux machine or VPS, the packages you need are usually available via apt or another package manager. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |