To preface making clib I will first explain what it is. clib is a package manger, with the one major difference being it contains it's own dependancies and cannot be used to install anything else. The default clib repository is on git here. If you notice by default it has no hash or checksum function. To do this you must import it through clib. To make clib I used these steps:
After pulling the sha1 folder and compiling test.c it will likely tell you CUnit/Basic.h is undefined. This test file requires intalling CUnit. The biggest problem with CUnit is is it hosted on sourceforge here which only allows local downloading and our wget command does not work here. I was able to dowload it by using the command below:
- mkdir test
- cd test
- git clone https://github.com/clibs/clib.git
- make
- clib-install sha1
After pulling the sha1 folder and compiling test.c it will likely tell you CUnit/Basic.h is undefined. This test file requires intalling CUnit. The biggest problem with CUnit is is it hosted on sourceforge here which only allows local downloading and our wget command does not work here. I was able to dowload it by using the command below:
- svn co https://cunit.svn.sourceforge.net/svnroot/cunit cunit
- automake --add-missing
- autoreconf (these steps fixed some dependancy errors)
- ./configure --prefix=/usr/lib/ (This is VERY important)
- make
- sudo make install
- sudo cp ./lib/libcunit.so ./
- sudo ldconfig (finds new lib)
Comments
Post a Comment