LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-28-2010, 09:53 PM   #1
lbbds
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Rep: Reputation: 0
make: *** [all] Error 2 ?


I download the dkim-milter-2.8.3, and try to compile it.Then Build and install it ("sh Build" and "sh Build install")but I got the error message:
code:
make[1]:*** [depend] Error 127
make[1]:cc:command not found
make[1]*** [ar.o] Error 127
make:*** [all] Error 2

Can anyone help me?
Thanks very much
By the way,the OS is RdeHat 4.4.4-2

Last edited by lbbds; 09-28-2010 at 09:56 PM.
 
Old 09-28-2010, 09:56 PM   #2
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Rep: Reputation: 36
Code:
$ sudo apt-get install gcc
or as root
Code:
# apt-get install gcc
 
Old 09-28-2010, 09:57 PM   #3
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Ummm No c compiler.... install it
 
Old 09-28-2010, 10:07 PM   #4
CincinnatiKid
Member
 
Registered: Jul 2010
Posts: 454

Rep: Reputation: 47
Umm, since you are on Redhat, try this:

Code:
# yum groupinstall "Development Tools"
That should install gcc as well as other development tools.
 
Old 09-28-2010, 10:28 PM   #5
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Rep: Reputation: 36
haha thanks lewisforlife missed that
 
Old 09-28-2010, 11:30 PM   #6
lbbds
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Original Poster
Rep: Reputation: 0
I took the command:yum groupinstall Development Tools but getting the error message:
"Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. please verify its path and try again."

So, Do I need to download the gcc?
 
Old 09-28-2010, 11:35 PM   #7
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Code:
su -c "yum install gcc g++"
This will install both GCC and the C++ version for it (just in case the program you're compiling has some C++ code in it).

Then, you can install the dev tools.

Of course, you can also search for the dev tools category in PackageKit and opt to select all and install all in that category.
 
Old 09-29-2010, 05:15 AM   #8
lbbds
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks all.I've installed the gcc-4.4.4-2.fc13 but also got some problems:

Quote:
make[1]: *** [dkim.o] Error 1
make[1]: Leaving directory `/home/ytang/Downloads/dkim-milter-2.8.3/obj.Linux.2.6.33.3-85.fc13.x86_64.x86_64/libdkim'
make: *** [all] Error 2
By the way, Is there anybody understanding how to configure the dkim with sendmail?
 
Old 09-29-2010, 06:23 AM   #9
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by lbbds View Post
Thanks all.I've installed the gcc-4.4.4-2.fc13 but also got some problems:
Please post the topmost error message..
 
Old 09-29-2010, 11:08 PM   #10
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Rep: Reputation: 36
alright run this command-
Code:
sh build > /dev/null
and post it.
this will redirect all non-error output to the bitbucket. That way we can see what errors make is throwing because im positive somewhere up there its throwing more errors than just 'make ***' or whatever it is
 
Old 09-30-2010, 12:19 AM   #11
lbbds
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Nylex View Post
Please post the topmost error message..
Below are all messages
Quote:
[root@mail dkim-milter-2.8.3]# sh Build
Making all in:
/home/ytang/Downloads/dkim-milter-2.8.3/libar
Configuration: pfx=, os=Linux, rel=2.6.33.3-85.fc13.x86_64, rbase=2, rroot=2.6.33.3-85.fc13, arch=x86_64, sfx=, variant=optimized
Making in /home/ytang/Downloads/dkim-milter-2.8.3/obj.Linux.2.6.33.3-85.fc13.x86_64.x86_64/libar
make[1]: Entering directory `/home/ytang/Downloads/dkim-milter-2.8.3/obj.Linux.2.6.33.3-85.fc13.x86_64.x86_64/libar'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ytang/Downloads/dkim-milter-2.8.3/obj.Linux.2.6.33.3-85.fc13.x86_64.x86_64/libar'
Making all in:
/home/ytang/Downloads/dkim-milter-2.8.3/libdkim
Configuration: pfx=, os=Linux, rel=2.6.33.3-85.fc13.x86_64, rbase=2, rroot=2.6.33.3-85.fc13, arch=x86_64, sfx=, variant=optimized
Making in /home/ytang/Downloads/dkim-milter-2.8.3/obj.Linux.2.6.33.3-85.fc13.x86_64.x86_64/libdkim
make[1]: Entering directory `/home/ytang/Downloads/dkim-milter-2.8.3/obj.Linux.2.6.33.3-85.fc13.x86_64.x86_64/libdkim'
cc -O2 -I. -I../../include -D_REENTRANT -DXP_MT -c -o dkim.o dkim.c
dkim.c:50:30: error: openssl/opensslv.h: No such file or directory
dkim.c:51:25: error: openssl/pem.h: No such file or directory
dkim.c:52:25: error: openssl/rsa.h: No such file or directory
dkim.c:53:25: error: openssl/bio.h: No such file or directory
dkim.c:54:25: error: openssl/err.h: No such file or directory
dkim.c:55:25: error: openssl/sha.h: No such file or directory
In file included from dkim.c:59:
dkim-types.h:137: error: expected specifier-qualifier-list before ‘BIO’
dkim-types.h:182: error: expected specifier-qualifier-list before ‘EVP_PKEY’
dkim.c: In function ‘dkim_process_set’:
dkim.c:697: error: ‘errno’ undeclared (first use in this function)
dkim.c:697: error: (Each undeclared identifier is reported only once
dkim.c:697: error: for each function it appears in.)
dkim.c:701: error: ‘ERANGE’ undeclared (first use in this function)
dkim.c:706: error: ‘EINVAL’ undeclared (first use in this function)
dkim.c: In function ‘dkim_siglist_setup’:
dkim.c:1822: error: ‘errno’ undeclared (first use in this function)
dkim.c:1825: error: ‘ERANGE’ undeclared (first use in this function)
dkim.c: In function ‘dkim_eom_sign’:
dkim.c:3136: error: ‘BIO’ undeclared (first use in this function)
dkim.c:3136: error: ‘key’ undeclared (first use in this function)
dkim.c:3210: error: ‘struct dkim_rsa’ has no member named ‘rsa_pkey’
dkim.c:3212: error: ‘struct dkim_rsa’ has no member named ‘rsa_pkey’
dkim.c:3219: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:3219: error: ‘struct dkim_rsa’ has no member named ‘rsa_pkey’
dkim.c:3220: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:3227: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:3228: error: ‘RSA_PKCS1_PADDING’ undeclared (first use in this function)
dkim.c:3229: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsaout’
dkim.c:3230: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsaout’
dkim.c:3234: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:3235: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:3296: error: ‘NID_sha1’ undeclared (first use in this function)
dkim.c:3304: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsaout’
dkim.c:3304: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:3307: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:3308: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:3318: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsaout’
dkim.c: In function ‘dkim_error’:
dkim.c:3817: error: ‘errno’ undeclared (first use in this function)
dkim.c: In function ‘dkim_free’:
dkim.c:4249: error: ‘struct dkim_rsa’ has no member named ‘rsa_pkey’
dkim.c:4249: error: ‘struct dkim_rsa’ has no member named ‘rsa_pkey’
dkim.c:4249: error: ‘struct dkim_rsa’ has no member named ‘rsa_pkey’
dkim.c:4250: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:4250: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:4250: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:4251: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsaout’
dkim.c:4251: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsaout’
dkim.c:4251: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsaout’
dkim.c: In function ‘dkim_sig_process’:
dkim.c:4680: error: ‘BIO’ undeclared (first use in this function)
dkim.c:4680: error: ‘key’ undeclared (first use in this function)
dkim.c:4776: error: ‘struct dkim_rsa’ has no member named ‘rsa_pkey’
dkim.c:4777: error: ‘struct dkim_rsa’ has no member named ‘rsa_pkey’
dkim.c:4790: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:4790: error: ‘struct dkim_rsa’ has no member named ‘rsa_pkey’
dkim.c:4791: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:4804: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:4805: error: ‘RSA_PKCS1_PADDING’ undeclared (first use in this function)
dkim.c:4807: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsain’
dkim.c:4812: error: ‘NID_sha1’ undeclared (first use in this function)
dkim.c:4819: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsain’
dkim.c:4820: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:4829: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:4830: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c: In function ‘dkim_ssl_version’:
dkim.c:7065: error: ‘OPENSSL_VERSION_NUMBER’ undeclared (first use in this function)
make[1]: *** [dkim.o] Error 1
make[1]: Leaving directory `/home/ytang/Downloads/dkim-milter-2.8.3/obj.Linux.2.6.33.3-85.fc13.x86_64.x86_64/libdkim'
make: *** [all] Error 2
 
Old 09-30-2010, 12:21 AM   #12
lbbds
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mf93 View Post
alright run this command-
Code:
sh build > /dev/null
and post it.
this will redirect all non-error output to the bitbucket. That way we can see what errors make is throwing because im positive somewhere up there its throwing more errors than just 'make ***' or whatever it is
Below are all message after running "sh Build > /dev/null"
Quote:
[root@mail dkim-milter-2.8.3]# sh Build > /dev/null
dkim.c:50:30: error: openssl/opensslv.h: No such file or directory
dkim.c:51:25: error: openssl/pem.h: No such file or directory
dkim.c:52:25: error: openssl/rsa.h: No such file or directory
dkim.c:53:25: error: openssl/bio.h: No such file or directory
dkim.c:54:25: error: openssl/err.h: No such file or directory
dkim.c:55:25: error: openssl/sha.h: No such file or directory
In file included from dkim.c:59:
dkim-types.h:137: error: expected specifier-qualifier-list before ‘BIO’
dkim-types.h:182: error: expected specifier-qualifier-list before ‘EVP_PKEY’
dkim.c: In function ‘dkim_process_set’:
dkim.c:697: error: ‘errno’ undeclared (first use in this function)
dkim.c:697: error: (Each undeclared identifier is reported only once
dkim.c:697: error: for each function it appears in.)
dkim.c:701: error: ‘ERANGE’ undeclared (first use in this function)
dkim.c:706: error: ‘EINVAL’ undeclared (first use in this function)
dkim.c: In function ‘dkim_siglist_setup’:
dkim.c:1822: error: ‘errno’ undeclared (first use in this function)
dkim.c:1825: error: ‘ERANGE’ undeclared (first use in this function)
dkim.c: In function ‘dkim_eom_sign’:
dkim.c:3136: error: ‘BIO’ undeclared (first use in this function)
dkim.c:3136: error: ‘key’ undeclared (first use in this function)
dkim.c:3210: error: ‘struct dkim_rsa’ has no member named ‘rsa_pkey’
dkim.c:3212: error: ‘struct dkim_rsa’ has no member named ‘rsa_pkey’
dkim.c:3219: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:3219: error: ‘struct dkim_rsa’ has no member named ‘rsa_pkey’
dkim.c:3220: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:3227: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:3228: error: ‘RSA_PKCS1_PADDING’ undeclared (first use in this function)
dkim.c:3229: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsaout’
dkim.c:3230: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsaout’
dkim.c:3234: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:3235: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:3296: error: ‘NID_sha1’ undeclared (first use in this function)
dkim.c:3304: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsaout’
dkim.c:3304: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:3307: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:3308: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:3318: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsaout’
dkim.c: In function ‘dkim_error’:
dkim.c:3817: error: ‘errno’ undeclared (first use in this function)
dkim.c: In function ‘dkim_free’:
dkim.c:4249: error: ‘struct dkim_rsa’ has no member named ‘rsa_pkey’
dkim.c:4249: error: ‘struct dkim_rsa’ has no member named ‘rsa_pkey’
dkim.c:4249: error: ‘struct dkim_rsa’ has no member named ‘rsa_pkey’
dkim.c:4250: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:4250: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:4250: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:4251: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsaout’
dkim.c:4251: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsaout’
dkim.c:4251: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsaout’
dkim.c: In function ‘dkim_sig_process’:
dkim.c:4680: error: ‘BIO’ undeclared (first use in this function)
dkim.c:4680: error: ‘key’ undeclared (first use in this function)
dkim.c:4776: error: ‘struct dkim_rsa’ has no member named ‘rsa_pkey’
dkim.c:4777: error: ‘struct dkim_rsa’ has no member named ‘rsa_pkey’
dkim.c:4790: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:4790: error: ‘struct dkim_rsa’ has no member named ‘rsa_pkey’
dkim.c:4791: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:4804: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:4805: error: ‘RSA_PKCS1_PADDING’ undeclared (first use in this function)
dkim.c:4807: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsain’
dkim.c:4812: error: ‘NID_sha1’ undeclared (first use in this function)
dkim.c:4819: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsain’
dkim.c:4820: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:4829: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c:4830: error: ‘struct dkim_rsa’ has no member named ‘rsa_rsa’
dkim.c: In function ‘dkim_ssl_version’:
dkim.c:7065: error: ‘OPENSSL_VERSION_NUMBER’ undeclared (first use in this function)
make[1]: *** [dkim.o] Error 1
make: *** [all] Error 2
 
Old 09-30-2010, 12:33 AM   #13
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
dkim.c:50:30: error: openssl/opensslv.h: No such file or directory
dkim.c:51:25: error: openssl/pem.h: No such file or directory
dkim.c:52:25: error: openssl/rsa.h: No such file or directory
dkim.c:53:25: error: openssl/bio.h: No such file or directory
dkim.c:54:25: error: openssl/err.h: No such file or directory
dkim.c:55:25: error: openssl/sha.h: No such file or directory

Suggests that you need to install the openssl headers. This may be in a package called openssl-dev(el), but perhaps your distro's package management system allows you to search for files in packages?

Quote:
Originally Posted by lbbds View Post
Below are all message after running "sh Build > /dev/null"
Can't you see that you basically made the same post twice by doing this (once in response to me and then in responding to mf93)? Please, use common sense in future.
 
Old 09-30-2010, 12:40 AM   #14
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Code:
su -c "yum install openssl-devel" #as Nylex said
Then re-run "sh Build".
 
Old 09-30-2010, 04:26 AM   #15
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
back up everyone
the OPs system is" RdeHat 4.4.4-2
BUT the gcc-4.4.4-2.fc13 from FEDORA 13 was installed ??

you CAN not mix RHEL 4 OS with fedora 13 rpms

it is no wonder that are problems .

for RHEL install the devel tools and library's from RHN

that is why you bought a license for red hat -- to get the updates and to add software to the older rhel4
i think the compiler in the rhn repo for RHEL4 is gcc 3.4
 
  


Reply



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
getting make: *** [all] Error 2 during make command for libmad-0.15.1b DJockey Linux - Software 3 07-29-2009 05:32 PM
RH9 make menuconfig error: make[1]: *** [lxdialog] Error 1 rrochele Linux - Kernel 3 02-07-2007 03:39 PM
make bzImage failure: make[1]: *** [init/version.o] Error 1 nmainak Linux - Kernel 2 07-16-2006 05:06 PM
lopster v1.2.2 make error: No rule to make target `m4/glibc21.m4' Kropotkin Fedora 0 10-31-2004 11:19 AM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:42 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
Open Source Consulting | Domain Registration