As others have mentioned, you need the m4 package, I cheated a bit and did:<br><br>sudo apt-get build-dep erlang<br><br>which
installs everything needed for building from source. Especially useful
as when starting from an almost empty ubuntu server install as I did.
<br><span class="sg"><br>/tobias</span><br><br><div><span class="gmail_quote">On 11/8/06, <b class="gmail_sendername">ke han</b> <<a href="mailto:ke.han@redstarling.com">ke.han@redstarling.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Tobias,<br>I am installing erlang on ubuntu for the  first time.  It is OTP<br>R11B-1 on "ubuntu 6.06.1 server".<br>This is a new install of ubuntu and all I added after the install was:<br>openssh, build-essential, libncurses5-dev, libssl-dev and openssl.
<br>These last three items I added in order to get ./configure to work.<br><br>When I run make, it dies as follows:<br><br>jhancock@ubuntu:~/otp_src_R11B-1$ make<br>cd erts/emulator && ERL_TOP=/home/jhancock/otp_src_R11B-1 make
<br>generate depend<br>make[1]: Entering directory `/home/jhancock/otp_src_R11B-1/erts/<br>emulator'<br>make -f i686-pc-linux-gnu/Makefile generate<br>make[2]: Entering directory `/home/jhancock/otp_src_R11B-1/erts/<br>emulator'
<br>/bin/mkdir -p i686-pc-linux-gnu/opt/plain<br>/bin/mkdir -p obj/i686-pc-linux-gnu/opt/plain<br>LANG=C /usr/bin/perl utils/beam_makeops -outdir i686-pc-linux-gnu/opt/<br>plain \<br>                 -emulator /home/jhancock/otp_src_R11B-1/lib/compiler/
<br>src/genop.tab beam/ops.tab beam/frag_ops.tab hipe/hipe_ops.tab<br>LANG=C /usr/bin/perl utils/make_tables -src i686-pc-linux-gnu -<br>include i686-pc-linux-gnu beam/atom.names beam/bif.tab hipe/<br>hipe_bif0.tab hipe/hipe_bif1.tab hipe/hipe_bif2.tab hipe/hipe_x86.tab
<br>LANG=C /usr/bin/perl utils/make_version -o i686-pc-linux-gnu/<br>erl_version.h R11B 5.5.1 i686-pc-linux-gnu<br>LANG=C /usr/bin/perl utils/make_driver_tab -o i686-pc-linux-gnu/<br>driver_tab.c obj/i686-pc-linux-gnu/opt/plain/efile_drv.o obj/i686-pc-
<br>linux-gnu/opt/plain/ddll_drv.o obj/i686-pc-linux-gnu/opt/plain/<br>inet_drv.o obj/i686-pc-linux-gnu/opt/plain/zlib_drv.o obj/i686-pc-<br>linux-gnu/opt/plain/ram_file_drv.o obj/i686-pc-linux-gnu/opt/plain/<br>ttsl_drv.o
<br>LANG=C /usr/bin/perl utils/make_alloc_types -src beam/erl_alloc.types<br>-dst i686-pc-linux-gnu/opt/plain/erl_alloc_types.h threads hipe unix<br>LANG=C /usr/bin/perl utils/make_preload -old /home/jhancock/<br>otp_src_R11B-1/lib/kernel/ebin/otp_ring0.beam /home/jhancock/
<br>otp_src_R11B-1/lib/kernel/ebin/init.beam /home/jhancock/<br>otp_src_R11B-1/lib/kernel/ebin/prim_inet.beam /home/jhancock/<br>otp_src_R11B-1/lib/kernel/ebin/prim_file.beam /home/jhancock/<br>otp_src_R11B-1/lib/kernel/ebin/erl_prim_loader.beam /home/jhancock/
<br>otp_src_R11B-1/lib/kernel/ebin/erlang.beam > i686-pc-linux-gnu/preload.c<br>m4  -DTARGET=i686-pc-linux-gnu -DOPSYS=linux -DARCH=x86 hipe/<br>hipe_x86_asm.m4 > i686-pc-linux-gnu/opt/plain/hipe_x86_asm.h<br>/bin/sh: m4: command not found
<br>make[2]: *** [i686-pc-linux-gnu/opt/plain/hipe_x86_asm.h] Error 127<br>make[2]: Leaving directory `/home/jhancock/otp_src_R11B-1/erts/emulator'<br>make[1]: *** [generate] Error 2<br>make[1]: Leaving directory `/home/jhancock/otp_src_R11B-1/erts/emulator'
<br>make: *** [depend] Error 2<br><br>Any idea what I need to have on ubuntu 6.06.1 server in order to get<br>a good compile??<br><br>thanks, ke han<br><br><br>On Nov 6, 2006, at 8:04 AM, Tobias Löfgren wrote:<br><br>>
<br>> Just a heads up for anyone else who uses Ubuntu. Erlang seems to<br>> have trouble loading external libraries/driver on a Ubuntu 6.10<br>> "Egdy Eft" system.<br>><br>> I've just spent the better part of the weekend trying to figure out
<br>> what was going wrong. First it seemed like a problem with Yaws,<br>> because erlang compiled fine and "worked". But yaws stopped with a<br>> "exec 1: setuid_drv.so :not found".<br>><br>
> After much reinstalling and experimenting with different versions I<br>> discovered that it was all dynamic loading of libraries that<br>> failed. For example "crypto:start()." in the erl shell crashed in a
<br>> similar fashion.<br>><br>> Maybe there is a simple solution to the problem, but at the moment<br>> it eludes me, so I've downgraded. The same packages and erlang-<br>> versions work perfectly fine in Ubuntu 
6.06, so if you're using<br>> Ubuntu and Erlang, don't upgrade ubuntu yet.<br>><br>><br>> /tobias<br>><br>><br>><br>> _______________________________________________<br>> erlang-questions mailing list
<br>> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>> <a href="http://www.erlang.org/mailman/listinfo/erlang-questions">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br>