---
title: "ubuntu安装otp R11B 的一些记录"
author: "coderplay"
date: "2007-11-16T12:30:22Z"
tags: []
slug: "ubuntu-otp-r11b"
draft: false
lastmod: "2007-11-16T12:30:22Z"
id: 141140
url: "https://coderplay.iteye.com/blog/141140"
---

新的ubuntu系统会缺少一些工具 和lib. 用apt-get来获得

apt-get install build-essential  
apt-get install libncurses5-dev  
apt-get install m4  
apt-get install libssl-dev

接着再编译就okay了.

运行  
\# erl  
1&gt; appmon:start().  
会发现界面没有, 程序停在那里. 这是因为缺少了tcl/tk库.   
apt-get install  tk8.3-dev

装的时候, 会出现如下问题:

\# erl  
Erlang (BEAM) emulator version 5.5.5 \[source] \[async-threads:0] \[hipe] \[kernel-poll:false]

Eshell V5.5.5  (abort with ^G)  
1&gt; appmon:start().  
Application initialization failed: no display name and no $DISPLAY environment variable  
Error in startup script: no display name and no $DISPLAY environment variable  
    while executing  
"load /usr/lib/tk8.4/../libtk8.4.so.0 Tk"  
    ("package ifneeded" script)  
    invoked from within  
"package require Tk 8.3"  
    (file "/usr/local/lib/erlang/lib/gs-1.5.7/priv/gstk.tcl" line 7)

原因不详, 用apt-get remove删去tcl和tk后, 再用apt-get install重装就okay了