[Sputnik-list] Res: sputnik with subversion
Sérgio Medeiros
tampo_8 at yahoo.com
Thu Jun 7 22:21:34 BRT 2007
Hi, Yuri!
I think you sent the last two e-mails just to me. It was my fault, because I forgot to give "reply all" before, sorry :-)
I am resending your file "installation.txt" to the list.
I compiled "luasvn" compiling Subversion, as you was able to compile APR, I think it is possible to get the whole system
working.
I learned new things today about linking. The number one was that when the gcc is linking, if there are two library files, one with extension ".a" and the other with extension ".so", gcc will choose the ".so" file
The second thing is, because gcc chose the ".so" file, you need to set "LD_LIBRARY_PATH" so "ld" can find the svn libraries. I did this: "export LD_LIBRARY_PATH=/home/smedeiros/svn/lib/" (you can also do
"export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/smedeiros/svn/lib/") and then "lua test.lua" worked.
I am sending my version of makefile to compile just "luasvn", I installed subversion (make install) in "/home/smedeiros/svn".
Sérgio
----- Mensagem original ----
De: Yuri Takhteyev <yuri at cs.stanford.edu>
Para: Sérgio Medeiros <tampo_8 at yahoo.com>
Enviadas: Quinta-feira, 7 de Junho de 2007 20:25:21
Assunto: Re: sputnik with subversion
I tried building everything from source as non-root (see attached
files with instructions), which required adding a link to the local
installation of Lua. I got luasvn.c but couldn't get ld to include
files from a local directory.
Any suggestions? (Until this problem with ld it all works even on
dreamhost, which is rather barebones, so this is quite exciting.)
- yuri
On 6/7/07, Yuri Takhteyev <yuri at cs.stanford.edu> wrote:
> I built my own subversion (1.4.3) and my own APR (from subversion
> repository), then built my luasvn with them and it still doesn't work.
> I get exactly the same error.
>
> - yuri
>
> On 6/7/07, Yuri Takhteyev <yuri at sims.berkeley.edu> wrote:
> > > I am trying to compile Subversion again and will send another e-mail when I have finished.
> > > P.S.: Was this the point or I missed it?
> >
> > Yes, that's what I meant. The only thing is: see if you can compile
> > it as non-root user.
> >
> > BTW, I am trying to do the same thing right now, but running into a
> > problem with APR.
> >
> > - yuri
> >
> > --
> > Yuri Takhteyev
> > UC Berkeley School of Information
> > http://www.freewisdom.org/
> >
>
>
> --
> Yuri Takhteyev
> UC Berkeley School of Information
> http://www.freewisdom.org/
>
--
Yuri Takhteyev
UC Berkeley School of Information
http://www.freewisdom.org/
____________________________________________________________________________________
Novo Yahoo! Cadê? - Experimente uma nova busca.
http://yahoo.com.br/oqueeuganhocomisso
-------------- next part --------------
74 cd ~/tmp/
75 mkdir luasvn
76 wget http://mirror.pop-sc.rnp.br/mirror/apache/apr/apr-1.2.8.tar.gz
77 tar xvzf apr-1.2.8.tar.gz
78 cd apr-1.2.8
79 ./configure --prefix=/home/qaramazov/tmp/luasvn
80 make
81 make install
82 cd ..
88 wget http://mirror.pop-sc.rnp.br/mirror/apache/apr/apr-util-1.2.8.tar.gz
89 tar xvzf apr-util-1.2.8.tar.gz
90 cd apr-util-1.2.8
92 ./configure --prefix=/home/qaramazov/tmp/luasvn/ --with-apr=/home/qaramazov/tmp/luasvn/
95 make
96 make install
97 cd ..
83 wget http://subversion.tigris.org/downloads/subversion-1.4.3.tar.gz
84 tar xvzf subversion-1.4.3.tar.gz
85 cd subversion-1.4.3
100 ./configure --prefix=/home/qaramazov/tmp/luasvn/ --with-apr=/home/qaramazov/tmp/luasvn/ --with-apr-util=/home/qaramazov/tmp/luasvn/
102 make
103 make install
105 cd ../luasvn/
107 wget http://sputnik-wiki.googlecode.com/svn/trunk/luasvn/luasvn.c
109 wget http://sputnik-wiki.googlecode.com/svn/trunk/luasvn/makefile
111 nano makefile
112 make
content of makefile:
SUBVERSION = /home/qaramazov/tmp/luasvn/include/subversion-1/
APR = /home/qaramazov/tmp/luasvn/include/apr-1/
LUA = /home/qaramazov/tmp/kepler-1.1/lua-5.1.2/src/
CFLAGS = -O2 -fpic -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -ggdb -fomit-frame-pointer -pipe -pthread
LDFLAGS = -O -shared -fpic --rpath /home/qaramazov/tmp/luasvn/lib/
LIBS = -lsvn_client-1 -lsvn_wc-1 -lsvn_ra-1 -lsvn_delta-1 -lsvn_diff-1 -lsvn_subr-1 -laprutil-1 -lexpat -lapr-1 -luuid -lrt -lcrypt -lpthread -ldl -lz
target: luasvn.so
luasvn.so: luasvn.o
gcc $(LDFLAGS) -o $@ $< $(LIBS)
luasvn.o: luasvn.c
gcc $(CFLAGS) -I $(SUBVERSION) -I $(APR) -I $(LUA) -c -o $@ $<
clean:
rm luasvn.so luasvn.o
-------------- next part --------------
A non-text attachment was scrubbed...
Name: =?utf-8?q?makefile?=
Type: application/octet-stream
Size: 572 bytes
Desc: not available
Url : http://lists.luaforge.net/pipermail/sputnik-list/attachments/20070607/38d81771/utf-8qmakefile.obj
More information about the Sputnik-list
mailing list