When trying to build the binary files the following error occurs:
-bash-3.00$ ./configure --enable-odbc
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether make sets $(MAKE)... yes
checking for erlc... /usr/local/bin/erlc
checking for erl... /usr/local/bin/erl
/usr/local/lib/erlang/lib/ssl-3.0.11/include/ssl_pkix.hrl:19: can't find include file "SSL-PKIX.hrl"
configure: error: could not compile sample program
I downloaded version 1.1.4 and everything configured and installed fine on the same machine. Is there an attribute or parameter I'm missing to compile the source? I thought it was erlang so I rebuilt and installed it but its still giving me the same error.
Linux ES4
GNU Make (Installed)
GCC (Installed)
Libexpat 1.95
Erlang/OTP R10B-10
OpenSSL 0.9.6
Zlib 1.2.3
Any help would be greatly appreciated.
Thanks in Advance
Maybe the Erlang ssl library was not compiled
ejabberd 2.0.0 includes experimental support for Erlang/OTP R12. However, it is required to check in 'configure' if the Erlang version installed in the system is R12 or previous to R12. And it seems that new code added in 'configure' puts you into trouble.
The problem is not related to your Erlang version; ejabberd should work correctly with R10B-10. The problem is that you don't have installed the file SSL-PKIX.hrl.
I have checked, and SSL-PKIX.hrl is not included in Erlang/OTP R10B-10 source package: it is generated when you compile Erlang. Interestingly, the file ssl_pkix.hrl is included in the source package: that's why you have it in your system.
I suspect that most of Erlang was compiled, but not the ssl library. Or it wasn't installed correctly. You tried to compile and install Erlang twice, both with the same problem. Maybe the OpenSSL development files are required but you don't have them?
A way to know if the ssl and crypto libraries are installed and can start correctly:
I tried what you suggested
I tried what you suggested and get the same output results as you did for testing if the crypto libraries and ssl are installed correctly. If you could point me in any new directions it would be greatly appreciated. I have 1.1.4 running now but would like to get 2.0.0 up and going :)
Thanks in advance
Andy
Maybe the file SSL-PKIX.hrl is not installed
So you have Erlang/OTP binaries installed. But ./configure complains that it can't find the file SSL-PKIX.hrl
You should check if this file is installed in your system.
For example, in Debian unstable, that file is included in the package erlang-dev. And the file is installed in: /usr/lib/erlang/lib/ssl-3.0.12/include/SSL-PKIX.hrl
Maybe the location depends in how you installed Erlang/OTP: compiled from source code, using the Debian package, Fedora, Gentoo, ...
Yea the file is installed in
Yea the file is installed in the correct directory and is on the system. I installed ejabberd 2.0.0 using the binary installation and it worked just fine. The only problem is I'm trying to connect to LDAPS and the only work around now is to update a file and then recompile ejabbered. If anyone else has had this problem let me know.
O/S: Linux Enterprise ES4
Resolved: I Installed a
Resolved: I Installed a newer version of Erlang and it worked. For some reason it would not compile under the R10B-10 build.
Andy