<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Thanks Tobias,  it appears you install erlang from some ubuntu repo.  I have always installed erlang on linux from source download at erlang.org.  <DIV>Which repo do you need to uncomment in ubuntu to find erlang?  Its not in the default ones.</DIV><DIV>Also, as a new ubuntu server user, I am concerned with opening up any but the core supported repos as they may bring in unsupported items when I install or upgrade.  </DIV><DIV>What is your approach?  </DIV><DIV>I am experimenting with a setup for what would be a production server, not some internal dev box.  I come from a FreeBSD world, so I'm used to starting minimal and adding only what I need.</DIV><DIV>thanks, ke han<DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On Nov 9, 2006, at 8:55 AM, Tobias Löfgren wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">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><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">erlang-questions mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://www.erlang.org/mailman/listinfo/erlang-questions">http://www.erlang.org/mailman/listinfo/erlang-questions</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></DIV></BODY></HTML>