jkockler
asked on
Asterisk install issues CentOS
I am getting an error during the "make" portion of an asterisk install. Here are some prerequisites, that make the issue rather frustrating, but maybe someone here can shine some light:
- I have done this exact same install, two times prior today, on 2 other boxes, by following the instructions verbatim at the site link below. The only difference between the current box, and the 2 others, is this one is 64 bit. All boxes are running Centos 5.3. Here is the article I followed:
http://www.voip-info.org/wiki/view/CentOS+5+and+Asterisk+1.4.x+installation
- Here is the error I get, during the make:
/usr/bin/ld: skipping incompatible /usr/lib/libidn.so when searching for -lidn
/usr/bin/ld: skipping incompatible /usr/lib/libidn.a when searching for -lidn
/usr/bin/ld: cannot find -lidn
collect2: ld returned 1 exit status
make[1]: *** [asterisk] Error 1
make[1]: Leaving directory `/usr/src/asterisk/asteris k-1.4.25.1 /main'
make: *** [main] Error 2
---- So I tested an install of Asterisk through "yum" (same version 1.4.25.1) .... It worked fine, no errors....
---- I figured well maybe the yum installed a dependency or something I missed, and tried the manual way again... Of course running make clean, make distclean, before configuring from usr/src/ but it again failed with the same error message.
Anyone have any idea why this is happening. I would really appreciate the help. Thanks!!!
- I have done this exact same install, two times prior today, on 2 other boxes, by following the instructions verbatim at the site link below. The only difference between the current box, and the 2 others, is this one is 64 bit. All boxes are running Centos 5.3. Here is the article I followed:
http://www.voip-info.org/wiki/view/CentOS+5+and+Asterisk+1.4.x+installation
- Here is the error I get, during the make:
/usr/bin/ld: skipping incompatible /usr/lib/libidn.so when searching for -lidn
/usr/bin/ld: skipping incompatible /usr/lib/libidn.a when searching for -lidn
/usr/bin/ld: cannot find -lidn
collect2: ld returned 1 exit status
make[1]: *** [asterisk] Error 1
make[1]: Leaving directory `/usr/src/asterisk/asteris
make: *** [main] Error 2
---- So I tested an install of Asterisk through "yum" (same version 1.4.25.1) .... It worked fine, no errors....
---- I figured well maybe the yum installed a dependency or something I missed, and tried the manual way again... Of course running make clean, make distclean, before configuring from usr/src/ but it again failed with the same error message.
Anyone have any idea why this is happening. I would really appreciate the help. Thanks!!!
ASKER
Will do when the machine comes back up.... is that "yum install -y curl" ?
ASKER
is it "curl-devel" ? If it is, then it is already installed.
ASKER
Curl is already installed.... I reinstalled the entire OS ... built all dependencies again, including curl.... Error changed, but relatively similar:
/usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.so when searching for -lgssapi_krb5
/usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.a when searching for -lgssapi_krb5
/usr/bin/ld: cannot find -lgssapi_krb5
collect2: ld returned 1 exit status
make[1]: *** [asterisk] Error 1
/usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.so
/usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.a when searching for -lgssapi_krb5
/usr/bin/ld: cannot find -lgssapi_krb5
collect2: ld returned 1 exit status
make[1]: *** [asterisk] Error 1
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
try the 64 bit release of curl for redhat since centOs is cloned
ftp://ftp.thewrittenword.com/packages/by-name/curl-7.15.1/x86_64-redhat-linuxe4/curl-7.15.1.rpm4.tar.Z
ftp://ftp.thewrittenword.com/packages/by-name/curl-7.15.1/x86_64-redhat-linuxe4/curl-7.15.1.rpm4.tar.Z
ASKER
what a disaster....
Do you know the exact line to add to yum.conf to make sure it does not download i386 packages?
Do you know the exact line to add to yum.conf to make sure it does not download i386 packages?
exclude=*.i386 *.i686
1. a bare minimal install of x86_64
2. remove any i[3,5,6]86 packages
3. update yum.conf to exclude *.i386 *.i586 *.i686
4. manually force reinstall any affected x86_64 packages
5. yum groupinstall everything else you need with the excludes in place.
2. remove any i[3,5,6]86 packages
3. update yum.conf to exclude *.i386 *.i586 *.i686
4. manually force reinstall any affected x86_64 packages
5. yum groupinstall everything else you need with the excludes in place.
Live long and prosper.
ASKER
Thanks man....
... Yea I think I will just install Centos 32 bit, and be done with it. I am only really using this box for Asterisk, so I do not see how I will even miss the 64 bit edition of Centos.... Sound like a good solution?
... Yea I think I will just install Centos 32 bit, and be done with it. I am only really using this box for Asterisk, so I do not see how I will even miss the 64 bit edition of Centos.... Sound like a good solution?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Installed 32 bit Centos ---- Asterisk install was rock solid. Thanks again Nerdsoftech!
64bit really is only beneficial if you have more than 4GB of ram. Less than that and you're better off sticking with 32bit.
http://curl.netmirror.org/docs/libs.html