erlzmq icon indicating copy to clipboard operation
erlzmq copied to clipboard

./configure fails on SUSE Linux 11.2

Open ikolomiets opened this issue 13 years ago • 7 comments

The system has latest Erlang installed (R14B01) and 0mq built from the current zeromq2 sources (as of Feb. 21, 2011) and installed in /usr/local/lib

After running ./bootstrap script,

./configure --with-zeromq=/usr/local/lib/

fails with the following error: .... checking for Erlang/OTP 'kernel' library subdirectory... configure: error: in /home/gosha/work/erlzmq': configure: error: test Erlang program execution failed Seeconfig.log' for more details.

config.log has this:

configure:3609: checking for Erlang/OTP 'kernel' library subdirectory configure:3649: $ERLC $ERLCFLAGS -b beam conftest.$ac_ext >&5 ; echo "#!/bin/sh" > conft est$ac_exeext ; AS_ECHO([""$ERL" -run conftest start -run init stop -noshell"]) >> con ftest$ac_exeext ; chmod +x conftest$ac_exeext ./configure: eval: line 3651: syntax error near unexpected token ["\"$ERL\" -run confte st start -run init stop -noshell"]' ./configure: eval: line 3651:$ERLC $ERLCFLAGS -b beam conftest.$ac_ext >&5 ; echo "#!/ bin/sh" > conftest$ac_exeext ; AS_ECHO([""$ERL" -run conftest start -run init stop -no shell"]) >> conftest$ac_exeext ; chmod +x conftest$ac_exeext' configure:3653: $? = 1 configure: program exited with status 1 configure: failed program was: | -module(conftest). | -export([start/0]). | | start() -> | ReturnValue = case code:lib_dir("kernel") of | {error, bad_name} -> | file:write_file("conftest.out", "not found\n"), | 1; | LibDir -> | file:write_file("conftest.out", LibDir), | 0 | end, | halt(ReturnValue) | . | configure:3673: error: in `/home/gosha/work/erlzmq': configure:3676: error: test Erlang program execution failed

ikolomiets avatar Feb 22 '11 00:02 ikolomiets

probably unrelated, but normally, for the path to 0mq, you want: ./configure --with-zeromq=/usr/local

csrl avatar Feb 22 '11 03:02 csrl

Thank you! Good to know. You're right - it's unrelated - I still get the same error.

ikolomiets avatar Feb 22 '11 03:02 ikolomiets

Looks like AC_ERLANG_CHECK_LIB macro is missing, what's your autoconf version? Were you able to run it before?

dhammika avatar Feb 22 '11 06:02 dhammika

autoconf is version 2.63

I compile lots of software on my workstation and never had problems related to autoconf before.

ikolomiets avatar Feb 23 '11 06:02 ikolomiets

I got latest erlang.m4 from autoconf distro. This solved everything with exception of
./bootstrap that complains now about:

/usr/share/aclocal/erlang.m4:102: error: m4_copy: won't overwrite defined macro: AC_LANG_CONFTEST(Erlang) /usr/share/aclocal/erlang.m4:102: the top level autom4te: /usr/bin/m4 failed with exit status: 1 aclocal: /usr/bin/autom4te failed with exit status: 1 autoreconf: aclocal failed with exit status: 1

but it doesn't prevent ./configure & make from running successfully.

ikolomiets avatar Feb 23 '11 19:02 ikolomiets

erlzmq includes m4/erlang.m4, may be there's a conflict.

dhammika avatar Feb 24 '11 08:02 dhammika

I encountered the same problem, how can we solve

Fang-Li avatar May 28 '16 16:05 Fang-Li