| stupid_idiot  
 
 
 
 
 Group: Members
 Posts: 344
 Joined: Oct. 2006
 | 
|  | Posted: Jan. 29 2008,06:18 |  |  Hi jpeters:
 Some packages have an '--enable-relocatable' or similar option in the 'configure' script -- I think this allows the executable to be moved around in the filesystem.
 However, the 'configure' file in 'vim71/' does not contain such an option.
 Since you said that vim can't find, e.g. the help-menu and spellcheck files, and there isn't an option to enable relocation in the 'configure' script, I think the only two options are:
 -- Make a symlink from '/opt/vim-7.1/share/vim/vim71/' to '/usr/local/share/vim/vim71/'.
 -- Reconfigure and recompile vim.
 
 Personally, I think recompiling is the best way to solve the problem, since it not only eliminates the manual work of making symlinks, etc, it also saves you the trouble of making a 'user.tar.gz' file with the data files (e.g. help-menu files, spellcheck files) that are in '/usr/local/share/vim/vim71/'.
 
 Re: Reconfiguring
 Please pardon me for presuming, but here is a sample configuration for 'vim-7.1.uci':
 (The options are in the order they are listed in 'configure --help'.)
 
 Just FYI:| Code Sample |  | CFLAGS='-Os' \ ./configure \
 --prefix=/opt/vim-7.1 \
 --sysconfdir=/etc \
 --localstatedir=/var \
 --enable-gui=gtk \
 --disable-acl \
 --disable-gpm \
 --disable-nls \
 --with-x
 | 
 My current practice is to put all the options in a script called 'set_[pkg-name].sh' which I can run and then save somewhere.
 e.g. 'set_vim71.sh'
 Obligatory question:
 Does anyone know of a better name than 'set_'?
 If so, do let me know.
 Thanks!
 |