LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-16-2006, 10:59 AM   #1
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Rep: Reputation: 30
Compiling from sources


How do I compile programs from sources?

Just so you know, I checked synaptic package manager, and I have build-essential installed. I am trying to install this program called hydra, and I go to the terminal, and type:
Code:
tar jxf  hydra-5.3-src.tar.gz
and this comes up:
Code:
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error exit delayed from previous errors
Then I try it without the jxf,
Code:
tar hydra-5.3-src.tar.gz
so this comes up.
Code:
tar: Old option `g' requires an argument.
Try `tar --help' or `tar --usage' for more information.
I tried both tar --help and tar --usage, but they didn't help.


Thanks for reading.
 
Old 09-16-2006, 11:01 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Gzipped files require the z option. The j option is for .bz2 files.
 
Old 09-16-2006, 11:09 AM   #3
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Nylex
Gzipped files require the z option. The j option is for .bz2 files.
Code:
tar -z hydra-5.3-src.tar.gz
Code:
tar: You must specify one of the `-Acdtrux' options
Try `tar --help' or `tar --usage' for more information.
Sorry if I am being an idiot.
 
Old 09-16-2006, 11:12 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You still need the x, which is for extract and the f, which is to specify the file.
 
Old 09-16-2006, 11:28 AM   #5
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Nylex
You still need the x, which is for extract and the f, which is to specify the file.
Code:
sudo make install
Code:
gcc -I. -Wall -O2 -c hydra-sip.c -DLIBPOSTGRES
hydra-sip.c:4:25: error: openssl/ssl.h: No such file or directory
hydra-sip.c:5:25: error: openssl/err.h: No such file or directory
hydra-sip.c:6:25: error: openssl/md5.h: No such file or directory
hydra-sip.c: In function ‘md5_crypt’:
hydra-sip.c:24: error: ‘MD5_DIGEST_LENGTH’ undeclared (first use in this function)
hydra-sip.c:24: error: (Each undeclared identifier is reported only once
hydra-sip.c:24: error: for each function it appears in.)
hydra-sip.c:26: error: ‘MD5_CTX’ undeclared (first use in this function)
hydra-sip.c:26: error: syntax error before ‘c’
hydra-sip.c:31: warning: implicit declaration of function ‘MD5_Init’
hydra-sip.c:31: error: ‘c’ undeclared (first use in this function)
hydra-sip.c:32: warning: implicit declaration of function ‘MD5_Update’
hydra-sip.c:33: warning: implicit declaration of function ‘MD5_Final’
hydra-sip.c:24: warning: unused variable ‘md5_raw’
hydra-sip.c: In function ‘sip_register’:
hydra-sip.c:60: error: ‘MD5_DIGEST_LENGTH’ undeclared (first use in this function)
hydra-sip.c:61: warning: unused variable ‘resp’
hydra-sip.c:61: warning: unused variable ‘mu’
hydra-sip.c:60: warning: unused variable ‘urp’
make: *** [hydra-sip.o] Error 1
I checked usr/local/bin but nothign was in there.
 
Old 09-16-2006, 11:35 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I don't know what that particular package is, but are you sure you don't need to run "./configure" and make first? Do you have the openssl-dev (or -devel) package installed?
 
Old 09-16-2006, 11:48 AM   #7
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Nylex
I don't know what that particular package is, but are you sure you don't need to run "./configure" and make first? Do you have the openssl-dev (or -devel) package installed?
I tried to install libcurl3-openssl-dev, and this erorr message poped up.
Quote:
Originally Posted by error message
E: clvm: subprocess post-installation script returned error exit status 3
E: redhat-cluster-suite: dependency problems - leaving unconfigured
E: system-config-cluster: dependency problems - leaving unconfigured
Hmm.

And I did run ./configure and make.

Code:
./configure
Code:
Starting hydra auto configuration ...

Checking for openssl (libssl/ssl.h) ...
                                    ... found
Checking for Postgres (libpq) ...
                              ... found
Checking for SVN (ibsvn_client-1 libapr-0.so libaprutil-0.so) ...
                              ... NOT found, module svn disabled
Checking for SAP/R3 (librfc/saprfc.h) ...
                                      ... NOT found, module sapr3 disabled
Get it from http://www.sap.com/solutions/netweaver/linux/eval/index.asp
Checking for libssh (libssh/libssh.h) ...
                                      ... NOT found, module ssh2 disabled
Get it from http://0xbadc0de.be/ - use v0.11!

Hydra will be installed into .../bin of: /usr/local
  (change this by running ./configure --prefix=path)

Writing Makefile.in ...

NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES
=======================================================================
ARM/PalmPilot users: please run ./configure-arm or ./configure-palm respectivly

now type "make"
Code:
make
Code:
gcc -I. -Wall -O2 -c hydra-sip.c -DLIBOPENSSL -DLIBPOSTGRES
hydra-sip.c: In function ‘md5_crypt’:
hydra-sip.c:33: warning: pointer targets in passing argument 1 of ‘MD5_Final’ differ in signedness
gcc -I. -Wall -O2 -c hydra-vmauthd.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-http-proxy-auth-ntlm.c -DLIBOPENSSL -DLIBPOSTGRES
hydra-http-proxy-auth-ntlm.c: In function ‘start_http_proxy_auth_ntlm’:
hydra-http-proxy-auth-ntlm.c:64: warning: pointer targets in passing argument 1 of ‘from64tobits’ differ in signedness
gcc -I. -Wall -O2 -c hydra-imap-ntlm.c -DLIBOPENSSL -DLIBPOSTGRES
hydra-imap-ntlm.c: In function ‘start_imap_ntlm’:
hydra-imap-ntlm.c:48: warning: pointer targets in passing argument 1 of ‘from64tobits’ differ in signedness
gcc -I. -Wall -O2 -c hydra-pop3-ntlm.c -DLIBOPENSSL -DLIBPOSTGRES
hydra-pop3-ntlm.c: In function ‘start_pop3_ntlm’:
hydra-pop3-ntlm.c:47: warning: pointer targets in passing argument 1 of ‘from64tobits’ differ in signedness
gcc -I. -Wall -O2 -c hydra-smtpauth-ntlm.c -DLIBOPENSSL -DLIBPOSTGRES
hydra-smtpauth-ntlm.c: In function ‘start_smtpauth_ntlm’:
hydra-smtpauth-ntlm.c:46: warning: pointer targets in passing argument 1 of ‘from64tobits’ differ in signedness
gcc -I. -Wall -O2 -c hydra-http-form.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c crc32.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c d3des.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c md4.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-mod.c -DLIBOPENSSL -DLIBPOSTGRES
hydra-mod.c: In function ‘hydra_tobase64’:
hydra-mod.c:609: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
gcc -I. -Wall -O2 -c ntlm.c -DLIBOPENSSL -DLIBPOSTGRES
ntlm.c: In function ‘buildAuthResponse’:
ntlm.c:1271: warning: pointer targets in passing argument 1 of ‘SMBencrypt’ differ in signedness
ntlm.c:1272: warning: pointer targets in passing argument 1 of ‘SMBNTencrypt’ differ in signedness
gcc -I. -Wall -O2 -c hydra.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -lm -o hydra hydra-vnc.o hydra-pcnfs.o hydra-rexec.o hydra-nntp.o hydra-socks5.o hydra-telnet.o hydra-cisco.o hydra-http.o hydra-ftp.o hydra-imap.o hydra-pop3.o hydra-smb.o hydra-icq.o hydra-cisco-enable.o hydra-ldap.o hydra-mysql.o hydra-http-proxy.o hydra-smbnt.o hydra-mssql.o hydra-snmp.o hydra-cvs.o hydra-smtpauth.o hydra-sapr3.o hydra-ssh2.o hydra-teamspeak.o hydra-postgres.o hydra-rsh.o hydra-rlogin.o hydra-oracle-listener.o hydra-svn.o hydra-pcanywhere.o hydra-sip.o hydra-vmauthd.o hydra-http-proxy-auth-ntlm.o hydra-imap-ntlm.o hydra-pop3-ntlm.o hydra-smtpauth-ntlm.o hydra-http-form.o crc32.o d3des.o md4.o hydra-mod.o ntlm.o hydra.o -lm -lssl -lpq -lcrypto -L/usr/lib -L/usr/local/lib -L/lib -L/usr/lib || echo -e "\nIF YOU RECEIVED THE ERROR MESSAGE \"cannot find -lpq\" DO THE FOLLOWING:\n  make clean; ./configure\n  vi Makefile    <- and remove the \"-lpq\" and \"-DLIBPOSTGRES\" statements\n  make\n"
/usr/bin/ld: cannot find -lpq
collect2: ld returned 1 exit status

IF YOU RECEIVED THE ERROR MESSAGE "cannot find -lpq" DO THE FOLLOWING:
  make clean; ./configure
  vi Makefile    <- and remove the "-lpq" and "-DLIBPOSTGRES" statements
  make


If men could get pregnant, abortion would be a sacrament

cd hydra-gtk && ./make_xhydra.sh
Trying to compile xhydra now (hydra gtk gui) - dont worry if this fails, this is really optional ...
Error: configure wasnt happy. Analyse this:
configure: error: Library requirements (gtk+-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
make: [xhydra] Error 1 (ignored)

Now type make install
Now just following the directions it gave me, I tried make install.
Code:
make install
Code:
gcc -I. -Wall -O2 -lm -o hydra hydra-vnc.o hydra-pcnfs.o hydra-rexec.o hydra-nntp.o hydra-socks5.o hydra-telnet.o hydra-cisco.o hydra-http.o hydra-ftp.o hydra-imap.o hydra-pop3.o hydra-smb.o hydra-icq.o hydra-cisco-enable.o hydra-ldap.o hydra-mysql.o hydra-http-proxy.o hydra-smbnt.o hydra-mssql.o hydra-snmp.o hydra-cvs.o hydra-smtpauth.o hydra-sapr3.o hydra-ssh2.o hydra-teamspeak.o hydra-postgres.o hydra-rsh.o hydra-rlogin.o hydra-oracle-listener.o hydra-svn.o hydra-pcanywhere.o hydra-sip.o hydra-vmauthd.o hydra-http-proxy-auth-ntlm.o hydra-imap-ntlm.o hydra-pop3-ntlm.o hydra-smtpauth-ntlm.o hydra-http-form.o crc32.o d3des.o md4.o hydra-mod.o ntlm.o hydra.o -lm -lssl -lpq -lcrypto -L/usr/lib -L/usr/local/lib -L/lib -L/usr/lib || echo -e "\nIF YOU RECEIVED THE ERROR MESSAGE \"cannot find -lpq\" DO THE FOLLOWING:\n  make clean; ./configure\n  vi Makefile    <- and remove the \"-lpq\" and \"-DLIBPOSTGRES\" statements\n  make\n"
/usr/bin/ld: cannot find -lpq
collect2: ld returned 1 exit status

IF YOU RECEIVED THE ERROR MESSAGE "cannot find -lpq" DO THE FOLLOWING:
  make clean; ./configure
  vi Makefile    <- and remove the "-lpq" and "-DLIBPOSTGRES" statements
  make


If men could get pregnant, abortion would be a sacrament

test -e hydra.exe && touch Makefile || strip hydra pw-inspector
strip: 'hydra': No such file
test -e hydra.exe && strip hydra.exe pw-inspector.exe || touch hydra
test -e xhydra && strip xhydra || touch Makefile
test -e hydra.exe && touch Makefile || cp hydra pw-inspector /usr/local/bin && cd /usr/local/bin && chmod 755 hydra pw-inspector
cp: cannot create regular file `/usr/local/bin/hydra': Permission denied
cp: cannot create regular file `/usr/local/bin/pw-inspector': Permission denied
make: [install] Error 1 (ignored)
test -e hydra.exe && cp hydra.exe pw-inspector.exe /usr/local/bin && cd /usr/local/bin && chmod 755 hydra.exe pw-inspector.exe || touch Makefile
test -e xhydra && cp xhydra /usr/local/bin && cd /usr/local/bin && chmod 755 xhydra
make: [install] Error 1 (ignored)
 
Old 09-16-2006, 12:11 PM   #8
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
cp: cannot create regular file `/usr/local/bin/hydra': Permission denied
cp: cannot create regular file `/usr/local/bin/pw-inspector': Permission denied
You must be root to 'make install'
Else just run it from where it is...
 
Old 09-16-2006, 01:05 PM   #9
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by bulliver
You must be root to 'make install'
Else just run it from where it is...
I then attempt to run hydra from the command line, and it doesn't load. I sit here for five minutes, and nothing comes up. There is also no man page for it. Maybe I need to run it like nmap.

But thanks.
 
Old 09-16-2006, 01:56 PM   #10
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Here's the docs:
http://thc.segfault.net/thc-hydra/README

Here's an article:
http://www.linux.com/article.pl?sid=05/08/22/205200

If you still can't get it sorted after reading that then I am not sure I or anyone else can help you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling kernel sources joshknape Mandriva 17 09-16-2005 09:33 PM
compiling slackware from sources kkmic Slackware 1 07-12-2004 09:01 AM
Compiling from sources - Launching Apps... ArthurDent Linux - Newbie 3 07-10-2004 09:57 AM
error compiling mc sources pawn-o-matic Linux From Scratch 2 12-29-2003 04:56 PM
Compiling Gnome2 from sources nightmare Bert Linux - Software 15 09-04-2002 04:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration