<br>First: I am not qualified to give any expert advice on how to set up production quality servers. However like probably most every other programmer in the world, I have had to anyway of course.<br><br>I build from source too, though I "cheat" with the dependencies. "
<span class="q">sudo apt-get build-dep erlang" installs all packages needed to BUILD the latest erlang-package from source, though not the erlang packages themselves. This gives you a (hopefully) perfect environment to build from source yourself (ie. "worked for me").
</span><br><br>I don't think you need to worry to much about packages added if you keep an eye open while running apt-get if you only add "universe" and "multiverse", I think you'll be more likely to run into problems if you try to build all dependencies from source yourself.
<br><br>Anyway, this is starting to get more ubuntu-related than erlang, maybe we should continue in private rather than on erlang-questions if you have more questions? <br><br>/Tobias<br><br><div><span class="gmail_quote">
On 11/9/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;">
<div style="">Thanks Tobias, it appears you install erlang from some ubuntu repo. I have always installed erlang on linux from source download at <a href="http://erlang.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
erlang.org</a>. <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><span class="e" id="q_10ecbe35620ae57f_1"><div><br></div><div><br><div><div>On Nov 9, 2006, at 8:55 AM, Tobias Löfgren wrote:</div><br><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><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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
erlang-questions@erlang.org</a><br>> <a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.erlang.org/mailman/listinfo/erlang-questions
</a><br> <br></blockquote></div><br><div style="margin: 0px;">_______________________________________________</div><div style="margin: 0px;">erlang-questions mailing list</div><div style="margin: 0px;"><a href="mailto:erlang-questions@erlang.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
erlang-questions@erlang.org</a></div><div style="margin: 0px;"><a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.erlang.org/mailman/listinfo/erlang-questions
</a></div> </blockquote></div><br></div></span></div></div></div>
</blockquote></div><br>