[framework] Problem with framework3 - db_nmap localhost leads to Error while running command db_nmap: no such file to load -- postgres
Marcel
webmaster at script-base.com
Wed Sep 26 09:20:28 CDT 2007
hm thanks but the quick way doesn't work.
root at blacksh33p:/pentest/framework3# gem install postgres
Building native extensions. This could take a while...
extconf.rb:6:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:6
ERROR: While executing gem ... (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in /var/lib/gems/1.8/gems/postgres-0.7.1
for inspection.
Results logged to /var/lib/gems/1.8/gems/postgres-0.7.1/gem_make.out
mkmf.log:
have_library: checking for cygwin32_socket() in -lwsock32...
-------------------- no
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. conftest.c
-L"/usr/lib" -lruby1.8-static -lwsock32 -lpthread -ldl -lcrypt -lm
-lc"
conftest.c: In Funktion »t«:
conftest.c:3: Fehler: »cygwin32_socket« nicht deklariert (erste
Benutzung in dieser Funktion)
conftest.c:3: Fehler: (Jeder nicht deklarierte Bezeichner wird nur
einmal aufgeführt
conftest.c:3: Fehler: für jede Funktion in der er auftritt.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))cygwin32_socket;
return 0; }
/* end */
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. conftest.c
-L"/usr/lib" -lruby1.8-static -lwsock32 -lpthread -ldl -lcrypt -lm
-lc"
/usr/bin/ld: cannot find -lwsock32
collect2: ld gab 1 als Ende-Status zurück
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { cygwin32_socket(); return 0; }
/* end */
--------------------
have_library: checking for socket() in -lsocket... --------------------
no
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. conftest.c
-L"/usr/lib" -lruby1.8-static -lsocket -lpthread -ldl -lcrypt -lm
-lc"
conftest.c: In Funktion »t«:
conftest.c:3: Fehler: »socket« nicht deklariert (erste Benutzung in
dieser Funktion)
conftest.c:3: Fehler: (Jeder nicht deklarierte Bezeichner wird nur
einmal aufgeführt
conftest.c:3: Fehler: für jede Funktion in der er auftritt.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))socket; return
0; }
/* end */
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. conftest.c
-L"/usr/lib" -lruby1.8-static -lsocket -lpthread -ldl -lcrypt -lm
-lc"
/usr/bin/ld: cannot find -lsocket
collect2: ld gab 1 als Ende-Status zurück
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { socket(); return 0; }
/* end */
--------------------
have_library: checking for gethostbyname() in -linet...
-------------------- no
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. conftest.c
-L"/usr/lib" -lruby1.8-static -linet -lpthread -ldl -lcrypt -lm
-lc"
conftest.c: In Funktion »t«:
conftest.c:3: Fehler: »gethostbyname« nicht deklariert (erste Benutzung
in dieser Funktion)
conftest.c:3: Fehler: (Jeder nicht deklarierte Bezeichner wird nur
einmal aufgeführt
conftest.c:3: Fehler: für jede Funktion in der er auftritt.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))gethostbyname;
return 0; }
/* end */
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. conftest.c
-L"/usr/lib" -lruby1.8-static -linet -lpthread -ldl -lcrypt -lm
-lc"
/usr/bin/ld: cannot find -linet
collect2: ld gab 1 als Ende-Status zurück
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { gethostbyname(); return 0; }
/* end */
--------------------
have_library: checking for gethostbyname() in -lnsl...
-------------------- yes
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. conftest.c
-L"/usr/lib" -lruby1.8-static -lnsl -lpthread -ldl -lcrypt -lm
-lc"
conftest.c: In Funktion »t«:
conftest.c:3: Fehler: »gethostbyname« nicht deklariert (erste Benutzung
in dieser Funktion)
conftest.c:3: Fehler: (Jeder nicht deklarierte Bezeichner wird nur
einmal aufgeführt
conftest.c:3: Fehler: für jede Funktion in der er auftritt.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))gethostbyname;
return 0; }
/* end */
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. conftest.c
-L"/usr/lib" -lruby1.8-static -lnsl -lpthread -ldl -lcrypt -lm
-lc"
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { gethostbyname(); return 0; }
/* end */
--------------------
have_header: checking for sys/un.h... -------------------- yes
"gcc -E -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. conftest.c -o
conftest.i"
checked program was:
/* begin */
1: #include <sys/un.h>
/* end */
--------------------
have_func: checking for socket()... -------------------- yes
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. conftest.c
-L"/usr/lib" -lnsl -lruby1.8-static -lnsl -lpthread -ldl -lcrypt
-lm -lc"
conftest.c: In Funktion »t«:
conftest.c:3: Fehler: »socket« nicht deklariert (erste Benutzung in
dieser Funktion)
conftest.c:3: Fehler: (Jeder nicht deklarierte Bezeichner wird nur
einmal aufgeführt
conftest.c:3: Fehler: für jede Funktion in der er auftritt.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))socket; return
0; }
/* end */
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. conftest.c
-L"/usr/lib" -lnsl -lruby1.8-static -lnsl -lpthread -ldl -lcrypt
-lm -lc"
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { socket(); return 0; }
/* end */
--------------------
have_func: checking for hsterror()... -------------------- no
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. conftest.c
-L"/usr/lib" -lnsl -lruby1.8-static -lnsl -lpthread -ldl -lcrypt
-lm -lc"
conftest.c: In Funktion »t«:
conftest.c:3: Fehler: »hsterror« nicht deklariert (erste Benutzung in
dieser Funktion)
conftest.c:3: Fehler: (Jeder nicht deklarierte Bezeichner wird nur
einmal aufgeführt
conftest.c:3: Fehler: für jede Funktion in der er auftritt.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))hsterror; return
0; }
/* end */
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. conftest.c
-L"/usr/lib" -lnsl -lruby1.8-static -lnsl -lpthread -ldl -lcrypt
-lm -lc"
/tmp/cc2ERU1f.o: In function `t':
conftest.c:(.text+0x15): undefined reference to `hsterror'
collect2: ld gab 1 als Ende-Status zurück
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { hsterror(); return 0; }
/* end */
--------------------
have_func: checking for gethostname()... -------------------- yes
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. conftest.c
-L"/usr/lib" -lnsl -lruby1.8-static -lnsl -lpthread -ldl -lcrypt
-lm -lc"
conftest.c: In Funktion »t«:
conftest.c:3: Fehler: »gethostname« nicht deklariert (erste Benutzung in
dieser Funktion)
conftest.c:3: Fehler: (Jeder nicht deklarierte Bezeichner wird nur
einmal aufgeführt
conftest.c:3: Fehler: für jede Funktion in der er auftritt.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))gethostname;
return 0; }
/* end */
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. conftest.c
-L"/usr/lib" -lnsl -lruby1.8-static -lnsl -lpthread -ldl -lcrypt
-lm -lc"
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { gethostname(); return 0; }
/* end */
--------------------
have_library: checking for PQsetdbLogin() in -lpq...
-------------------- no
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. conftest.c
-L"/usr/lib" -lnsl -lruby1.8-static -lpq -lnsl -lpthread -ldl
-lcrypt -lm -lc"
conftest.c: In Funktion »t«:
conftest.c:3: Fehler: »PQsetdbLogin« nicht deklariert (erste Benutzung
in dieser Funktion)
conftest.c:3: Fehler: (Jeder nicht deklarierte Bezeichner wird nur
einmal aufgeführt
conftest.c:3: Fehler: für jede Funktion in der er auftritt.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))PQsetdbLogin;
return 0; }
/* end */
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. conftest.c
-L"/usr/lib" -lnsl -lruby1.8-static -lpq -lnsl -lpthread -ldl
-lcrypt -lm -lc"
/usr/bin/ld: cannot find -lpq
collect2: ld gab 1 als Ende-Status zurück
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { PQsetdbLogin(); return 0; }
/* end */
--------------------
Am Mittwoch, den 26.09.2007, 08:51 -0500 schrieb H D Moore:
> You need to install the Ruby postgres driver. The quick way:
>
> # gem install postgres
>
> -HD
>
> On Wednesday 26 September 2007 08:48, Marcel wrote:
> > Installed the framework in ubuntu as it is described on the homepage.
> > I installed postgres to use the db funtionality.
> > This happens:
>
More information about the framework
mailing list