Page 1 of 1

Vim 7.3 - compiled from source

Posted: 18 Aug 2012, 20:49
by iHaveAnAxe
Hi,

I just compiled vim from source and created a module. I uploaded the file in http://depositfiles.com/files/0zma7s1ar (file size is 6.66 MB :evil: )

Here is how I created the module for documentation and also to check if I made any mistakes:

1) Downloaded source from vim.org
2) Extracted tar archive
3) cd src
4) make
5) make test (all seemed ok - got test results: ALL DONE http://vimdoc.sourceforge.net/htmldoc/usr_90.html )
6) make install DESTDIR=/tmp/vim/
7) cd /tmp
7) dir2xzm /tmp/vim/ vim-7.3.xzm
8 ) move xzm file to modules folder
9) reboot
10) vim, gvim, vimtutor work fine.

I realized now that I didn't create a desktop file but then I couldn't test it since I only ssh on my porteus machine.

Re: Vim 7.3 - compiled from source

Posted: 19 Aug 2012, 15:39
by fanthom
hello iHaveAnAxe,
Here is how I created the module for documentation and also to check if I made any mistakes
it's a good idea to provide default slackware config options to the ./configure script (if exist):

Code: Select all

CFLAGS="$SLKCFLAGS" ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --mandir=/usr/man --build=$ARCH-slackware-linux
where:
SLKCFLAGS=-O2 -march=i486 -mtune=i686 (or "-O2 -fPIC" for 64bits)
LIBDIRSUFFIX="" (or "64" for 64bits)
ARCH=i486 (or "x86_64" for 64bits)

this way your package/module preserves maximum compatibility with slackware (and you wont end up with man pages installed in /usr/share/man or /usr/local/man, etc..)

Cheers

Re: Vim 7.3 - compiled from source

Posted: 20 Aug 2012, 09:13
by iHaveAnAxe
Yeah, I actually read that after I created the module. I will try to create a fresh one tonight.

Thanks