On Sat, 18 Apr 2020 21:37:10 +0800
Hongyi Zhao <hongyi.z...@gmail.com> wrote:

> Shlomi Fish <shlo...@shlomifish.org> 于2020年4月18日周六 下午8:53写道:
> >
> > Hi,
> >
> > On Sat, 18 Apr 2020 20:42:38 +0800
> > Hongyi Zhao <hongyi.z...@gmail.com> wrote:
> >  
> > > Shlomi Fish <shlo...@shlomifish.org> 于2020年4月18日周六 下午8:18写道:  
> > > >
> > > > Hi,
> > > >
> > > > On Sat, 18 Apr 2020 19:51:09 +0800
> > > > Hongyi Zhao <hongyi.z...@gmail.com> wrote:
> > > >  
> > > > > No, still failed, see following:
> > > > >
> > > > > $ git clone https://github.com/shlomif/vim.git vim.git  
> > > >
> > > > You are using the wrong git branch:
> > > >
> > > > https://github.com/shlomif/vim/tree/lua-moonjit-support
> > > >
> > > > execute "git checkout lua-moonjit-support"  
> > >
> > > Failed, see following:
> > >
> > > $ git clean -xdf
> > > $ git checkout lua-moonjit-support
> > > $ git branch
> > > * lua-moonjit-support
> > >   master
> > > [...]
> > > $ make -j1
> > > [...]
> > > /usr/bin/ld: objects/if_lua.o: in function `luaopen_vim':
> > > /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2011:
> > > undefined reference to `lua_setglobal'
> > > /usr/bin/ld:
> > > /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2013:
> > > undefined reference to `lua_getglobal' /usr/bin/ld:  
> >
> > First of all, I suggest removing moonjit out of /usr/local and installing
> > it to its own path (say "/opt/moonjit" or "/usr/local/apps/moonjit"). After
> > that [and after fixing the "./configure" invocation], try playing with
> > these:  
> 
> The only relative moonjit/luajit in "./configure" invocation is as following:
> 
> --with-luajit
> 
> Which has not location relative argument, so this is no need to fix
> anything for my case of the "./configure" options.
> 
> 
> 
> >
> > https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html
> >
> > As well as
> > https://stackoverflow.com/questions/13428910/how-to-set-the-environmental-variable-ld-library-path-in-linux
> >  
> 
> It does the trick.  Thanks a lot. But I stilll cannot figure out why
> must I install it into separate dirctory otherwise it will failed to
> work.
> 

There can be a lot of software packages installed under /usr/local/* and some
of them may interfere with the building of vim.

> The method I used is as following:
> 
>   I prepare a module file and then use lmod to loade it, the file has
> the following contents which is used to set the environment variables:
> 
> 
> #%Module
> setenv CPATH {/home/werner/moonjit/include/moonjit-2.3}
> setenv C_INCLUDE_PATH {/home/werner/moonjit/include/moonjit-2.3}
> prepend-path LD_LIBRARY_PATH {/home/werner/moonjit/lib}
> setenv LIBRARY_PATH {/home/werner/moonjit/lib}
> prepend-path PATH {/home/werner/moonjit/bin}
> 



-- 

Shlomi Fish       https://www.shlomifish.org/
https://is.gd/htwEXQ - Integrating GNU Guile into GNU coreutils

Many a man owes his success to his first wife and his second wife to his
success.
    — Jim Backus (unsourced)

Please reply to list if it's a mailing list post - https://shlom.in/reply .

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200421164421.1ed6fbae%40telaviv1.shlomifish.org.

Reply via email to