PDA

View Full Version : Solution to sqlite Compile problems to allow use of Aircrack-ng 1 Dev r540 or above


balding_parrot
07-09-2007, 07:45 AM
I HAVE NOW SOLVED THIS AND THE THREE SOLUTIONS ARE IN POSTS 5 AND 14




This was posted in response to the news that as of r540 Aircrack-ng 1 Devel needs libsqlite >= 3.3.17 to compile.

http://forums.remote-exploit.org/showthread.php?t=7291

r534
WARNING: 1.0-dev needs libsqlite-dev >= 3.3.17 as of now, or it won't compile.
http://sqlite.org/sqlite-3.4.0.tar.gz
BT2:
sqlite3 -version
3.3.7

Possible update procedure?
curl -O http://www.sqlite.org/sqlite-3.4.0.tar.gz
tar xvzf sqlite-3.4.0.tar.gz
cd sqlite-3.4.0
./configure --prefix=/usr/local
make && make install


I have been trying to get this working for two days without any luck.
Research on the SQLite website has not helped at all.
Research on the Aircrack-ng website has only shown up that there is at least one other person getting the same results as me.

So this is what I have tried so far


curl -O http://www.sqlite.org/sqlite-3.4.0.tar.gz
tar xvzf sqlite-3.4.0.tar.gz
cd sqlite-3.4.0
./configure --prefix=/usr/local
make && make install
AND


curl -O http://www.sqlite.org/sqlite-3.4.0.tar.gz
tar xvzf sqlite-3.4.0.tar.gz
cd sqlite-3.4.0
./configure
make && make install
AND


curl -O http://www.sqlite.org/sqlite-3.4.0.tar.gz
tar xvzf sqlite-3.4.0.tar.gz
cd sqlite-3.4.0
./configure --prefix=/usr/local
make
make install
AND


curl -O http://www.sqlite.org/sqlite-3.4.0.tar.gz
tar xvzf sqlite-3.4.0.tar.gz
cd sqlite-3.4.0
./configure
make
make install
And I tried these just in case it was a problem with sqlite-3.4.0.tar.gz


cvs -d :pserver:anonymous@www.sqlite.org:/sqlite login
anonymous
cvs -d :pserver:anonymous@www.sqlite.org:/sqlite checkout sqlite
./configure --prefix=/usr/local
make && make install
AND


cvs -d :pserver:anonymous@www.sqlite.org:/sqlite login
anonymous
cvs -d :pserver:anonymous@www.sqlite.org:/sqlite checkout sqlite
./configure
make && make install
AND


cvs -d :pserver:anonymous@www.sqlite.org:/sqlite login
anonymous
cvs -d :pserver:anonymous@www.sqlite.org:/sqlite checkout sqlite
./configure --prefix=/usr/local
make
make install
AND


cvs -d :pserver:anonymous@www.sqlite.org:/sqlite login
anonymous
cvs -d :pserver:anonymous@www.sqlite.org:/sqlite checkout sqlite
./configure
make
make install
All of the above have also been tried with

make cleanas a substitute for the make command

And EVERY time I am getting the same problem at the
make install
make: Nothing to be done for `all'.
tclsh ./tclinstaller.tcl 3.4
make: tclsh: Command not found
make: *** [tcl_install] Error 127
All of this has been done on BT2 Final, CD Boot so as there are no other modules to confuse the diagnosis of the problem.
I have also used checkinstall too so as I can create a module for everyone who like me needs to be able to use aircrack-ng dev 1 r540 or above.

Ok so HELP !!! Please ;)

I am not totally happy about where I have put this thread, but as it applies to development releases of programs covering specialist topics I finally decided after much debate, to put it here.
If an Admin or Mod think it should be elsewhere then please move it and accept my apologies.

shamanvirtuel
07-09-2007, 04:24 PM
idem no way to update my version

if i find a solution ill posted here...

balding_parrot
07-09-2007, 07:55 PM
Thank you for confirming its not just me and for your help.:D I was beginning to think it was something I was doing wrong :(

I THINK I have got it fixed :eek:

just got to test and if it works I will write up a small TUT and with a bit of luck post a module for everyone.

Here goes nothing

Fingers Crossed

balding_parrot
07-09-2007, 08:35 PM
IT WORKS !! :eek: 2 1/2 days of banging my head and pulling out even more feathers and IT WORKS !! :D

just created a sqlite-3.4.0.lzm module rebooted and updated to aircrack-ng 1.0 r547 :cool:

Just got to do a little testing to make sure, sort out writing a TUT and upload the file somewhere for everyone.

So just a little more patience... please

balding_parrot
07-09-2007, 10:11 PM
Ok so here it is........

I have no intention of writing a long explanation to what turns out to be a simple problem.

The problem is that the makefile for sqlite references a needed file, but it gets the reference wrong.

So the procedure to fix this is thus:


curl -O http://www.sqlite.org/sqlite-3.4.0.tar.gz
tar xvzf sqlite-3.4.0.tar.gz
cd sqlite-3.4.0
./configure --prefix=/usr/local
make
and at this point we need to edit the makefile

At the bottom of the original makefile you will find this:



$(INSTALL) -m 0644 sqlite3.pc $(DESTDIR)$(libdir)/pkgconfig;

tcl_install: libtclsqlite3.la
tclsh $(TOP)/tclinstaller.tcl $(VERSION)

clean:
rm -f *.lo *.la *.o sqlite3$(TEXE) libsqlite3.la

Which you need to edit to this:



$(INSTALL) -m 0644 sqlite3.pc $(DESTDIR)$(libdir)/pkgconfig;

tcl_install: libtclsqlite3.la
tclsh8.4 $(TOP)/tclinstaller.tcl $(VERSION)

clean:
rm -f *.lo *.la *.o sqlite3$(TEXE) libsqlite3.la

and thats it, you can continue as normal


make install
Your done, finished and now you can continue to use aircrack-ng 1.0 r540 or above.

Here is a partial screenshot of an update I did a couple of hours ago.

http://img66.imageshack.us/img66/27/updatezt4.jpg

And there you are, thats it, the sum total of 2 1/2 days of banging my head and pulling out most of the feathers I have left.


So now to the ones who want to be lazy and would like a module of this...

sqlite-3.4.0.lzm (http://rapidshare.com/files/41948177/sqlite-3.4.0.lzm)

There you go now you can update to aircrack-ng 1.0 r540 or greater. That is until they decide to add some new requirement.

Hope this helps someone.

Good Luck

Have phun. ;)

shamanvirtuel
07-09-2007, 10:39 PM
your update application looks really slick :D;)..... lol....

yes thx again i may automated the install process and patched for the makefile into the update application itself.......

well done..........

balding_parrot
07-09-2007, 10:51 PM
your update application looks really slick :D;)..... lol....

yes thx again i may automated the install process and patched for the makefile into the update application itself.......

well done..........

Yes I thought the my application looked pretty slick too;)
Hope you didn't mind, I thought it was the best way to show it worked.

Thank you .......:o It was quite a slog to work it out, but a fantastic feeling once it finally worked, that made it worth all the time and effort.

shamanvirtuel
07-09-2007, 10:54 PM
No pb with screenshots......i post some too......

thx again for hard work :):):)

PrairieFire
07-09-2007, 11:32 PM
Thanks balding_parrot, I knew it had something to do with tch and even noticed while looking around bt2 folders kept calling it differently just did not know what exactly to change.

shamanvirtuel
07-10-2007, 01:25 AM
now im revision 550 nice job again..........

i will add an option to update libsql with your lzm in AIR if you give me rights to do it......

balding_parrot
07-10-2007, 01:47 AM
now im revision 550 nice job again..........

i will add an option to update libsql with your lzm in AIR if you give me rights to do it......

I was just looking at the revisions myself......

As far as I am concerned you may do what you wish with it. It is open source, so you have the same rights to do whatever you would like to do, the same as I had to make it work for us all.

To be honest it just makes me feel good to be able to give back in some small way for everything I have gotten out of BackTrack, and even happier that it will be used for a project like yours.:cool:

Thank you for asking though:)

So to condense those ramblings GO FOR IT !! :D

antihaxer
07-10-2007, 11:55 AM
Thanks! Module worked great for me!

Notlist3d
07-10-2007, 11:17 PM
Thank you, module worked perfect. Aircrack-ng dev is now running great.

balding_parrot
07-11-2007, 05:55 AM
Just worked out another way some of you may find a little more simple than the others I have previously posted.


cd /usr/local/bin/
ln -s tclsh8.4 tclsh
cd /root/
then just proceed as normal


curl -O http://www.sqlite.org/sqlite-3.4.0.tar.gz
tar xvzf sqlite-3.4.0.tar.gz
cd sqlite-3.4.0
./configure --prefix=/usr/local
make && make install

So there you go you now have Three ways of doing it, so you have no excuses.

Good Luck :D

balding_parrot
07-11-2007, 06:02 AM
Thank you.. Glad you like it

BTW there are a couple of fantastic reasons to update today [553] and [555]

[551] by hirte on 07/10/07 10:21:47

Fixed aircrack-ng -e usage another way to prevent a segfault.

[552] by hirte on 07/10/07 10:56:45

Fixed segfault after searching through (limited) keyspace.

[553] by hirte on 07/10/07 21:28:26

Make chopchop use random macs instead of the hardware mac when no "-h" is given.

[554] by hirte on 07/10/07 21:54:22

Fixed "-m" usage in aireplay-ng.

[555] by hirte on 07/10/07 23:19:31

Added generated interface name to airtun-ng output.

Thanks again