`
deepfuture
  • 浏览: 4401995 次
  • 性别: Icon_minigender_1
  • 来自: 湛江
博客专栏
073ec2a9-85b7-3ebf-a3bb-c6361e6c6f64
SQLite源码剖析
浏览量:80084
1591c4b8-62f1-3d3e-9551-25c77465da96
WIN32汇编语言学习应用...
浏览量:70101
F5390db6-59dd-338f-ba18-4e93943ff06a
神奇的perl
浏览量:103411
Dac44363-8a80-3836-99aa-f7b7780fa6e2
lucene等搜索引擎解析...
浏览量:285931
Ec49a563-4109-3c69-9c83-8f6d068ba113
深入lucene3.5源码...
浏览量:15019
9b99bfc2-19c2-3346-9100-7f8879c731ce
VB.NET并行与分布式编...
浏览量:67610
B1db2af3-06b3-35bb-ac08-59ff2d1324b4
silverlight 5...
浏览量:32177
4a56b548-ab3d-35af-a984-e0781d142c23
算法下午茶系列
浏览量:46001
社区版块
存档分类
最新评论

ubnutu安装erlang1.13b

阅读更多
一、手动安装erlang

How to build and install Erlang/OTP
-----------------------------------

Start by unpacking the Erlang/OTP distribution file with your
GNU compatible TAR

  1)    gunzip -c otp_src_R13A.tar.gz | tar xf -
  1)    zcat otp_src_R13A.tar.gz | tar xf -

Now cd into the base directory

  2)    cd otp_src_R13A

On some platforms Perl may behave strangely if certain locales are set,
so optionally you may need to set the LANG variable:

  3a) LANG=C; export LANG #Bourne shell
or
  3b) setenv LANG C #C-shell

Run the following commands

  4a)    ./configure  [ options ]
or
  4b)    ./configure --prefix=<BaseDir> [ other options ]
如果这一步提示错误,请安装libcurses 库
By default, Erlang/OTP will be installed in /usr/local/{bin,lib/erlang,man/man1}.
To instead install in <BaseDir>/{bin,lib/erlang,man/man1}, use the --prefix=<BaseDir>
option.

If you upgraded the source with some patch you may need to clean up
from previous builds before the new build. Do a "make clean"; see
"Caveats" below.

  5)    make
  6)    make install

Let's go through them in some detail:

Step 4 runs a configuration script created by the GNU autoconf
utility, which checks for system specific features and then creates a
number of makefiles.

The configure script allows you to customize a number of parameters;
type "./configure --help" for details.

One of the things you can specify is where Erlang/OTP should be installed: by
default Erlang/OTP will be installed in /usr/local/{bin,lib/erlang,man/man1};
to keep the same structure but install in a different place, <Dir> say,
use the --prefix argument like this:
"./configure --prefix=<Dir>".

This step will also configure any additional libraries unpacked in step 3
(if you didn't add any of the extra libraries configure will issue a warning
saying that there is no configuration information in lib; this warning can
safely be ignored).

You can also specify where the OpenSSL include and library files are
located, or alternatively disable the use of SSL and Crypto.
(The details can be found by typing './configure --help'.)

Other options are:

    --enable-smp-support    See the next section.

    --disable-smp-support    See the next section.

    --disable-threads    Disable support for threaded I/O;
                this option also disables building
                of the SMP emulator. (See the next section.)

    --enable-threads    Enable support for threaded I/O.
                (This is the default if SMP support is enabled.
                See the next section.)
               
    --disable-hipe       Disable HiPE (High-Performance Erlang).
                HiPE will automatically be enabled on
                supported platforms.
   

    Step 5 builds the Erlang/OTP system. On a fast computer,
this will take about 5 minutes. After completion of this step,
you should have a working Erlang/OTP system which you can
try by typing "bin/erl". This should start up Erlang/OTP and give you
a prompt.

    Step 6 is optional. It installs Erlang/OTP (if you change your
mind about where you wish to install you can rerun step 4, without
having to do step 5 again).

The source tree is delivered with a lot of platform independent
build results already pre-built. If you want to remove these pre-built
files, invoke './otp_build remove_prebuilt_files' from the $ERL_TOP
directory. After you have done this, you can build exactly the same way
as before, but the build process will take a much longer time.

NOTE: Doing 'make clean' in an arbitrary directory of the source tree,
may remove files needed for bootstrapping the build. Doing
'./otp_build save_bootstrap' from the $ERL_TOP directory before
doing 'make clean' will ensure that it will be possible to build after
doing 'make clean'. './otp_build save_bootstrap' will be invoked
automatically when 'make' is invoked from ERL_TOP with either the
clean target, or the default target. It is also automatically invoked
if './otp_build remove_prebuilt_files' is invoked.

If you or your system has special requirements please read the
Makefile for additional configuration information.

Support for SMP (Symmetric Multi Processing)
--------------------------------------------

An emulator with SMP support will be built by default on most platforms
if a usable POSIX thread library or native Windows threads is found.

You can force building of an SMP emulator, by using
"./configure --enable-smp-support". However, if configure doesn't
automatically enable SMP support, the build is very likely to fail.

Use "./configure --disable-smp-support" if you for some reason don't
want to have the emulator with SMP support built.

If SMP support is enabled, support for threaded I/O will also be turned on
(also in the emulator without SMP support).

The 'erl' command will automatically start the SMP emulator if the
computer has more than one logical processor. You can force a start
of the emulator with SMP support by passing '-smp enable' as
command line arguments to erl, and you can force a start of the
emulator without SMP support by passing '-smp disable'.

How to install the Erlang/OTP documentation
-------------------------------------------

For some graphical tools to find the on-line help you have to install
the HTML documentation on top of the installed OTP applications, i.e.

        cd <PrefixDir>/lib/erlang
        gunzip -c otp_html_R<XY>B-<Z>.tar.gz | tar xf -

For "erl -man <page>" to work the Unix manual pages have to be
installed in the same way, i.e.

        cd <PrefixDir>/lib/erlang
        gunzip -c otp_man_R<XY>B-<Z>.tar.gz | tar xf -


GS (Graphic System)
-------------------

GS now Tcl/Tk 8.4. It will be searched for when starting GS.


Using HiPE
----------

HiPE supports the following system configurations:

x86:
    All 32-bit and 64-bit mode processors should work.

    The following systems are supported:

    Linux:
        Fedora Core is supported.
        Both 32-bit and 64-bit modes are supported.

        NPTL glibc is strongly preferred, or a LinuxThreads
        glibc configured for "floating stacks". Old non-floating
        stacks glibcs have a fundamental problem that makes HiPE
        support    and threads support mutually exclusive.
    Solaris:
        Solaris 10 (32-bit and 64-bit) and 9 (32-bit) are
        supported.

        The build requires a version of the GNU C compiler (gcc)
        that has been configured to use the GNU assembler (gas).
        Sun's x86 assembler is emphatically /not/ supported.
    FreeBSD:
        FreeBSD 6.1 and 6.2 in 32-bit and 64-bit modes should work.

PowerPC:
    All 32-bit 6xx/7xx(G3)/74xx(G4) processors should work.
    32-bit mode on 970 (G5) and POWER5 is untested and may need
    compiler changes (to avoid using the "mcrxr" instruction).

    Linux (Yellow Dog) and Mac OSX 10.3.9 are supported.

SPARC:
    All UltraSPARC processors running 32-bit user code should work.

    Solaris 9 and Linux (Aurora) are supported.

    On Solaris the build requires a gcc that has been configured
    to use Sun's assembler and linker. Using the GNU assembler but
    Sun's linker has been known to cause problems.
ARM:
    ARMv5TE (i.e. XScale) processors should work.
    Both big-endian and little-endian modes are supported.

    Linux is supported.

HiPE is automatically enabled on the following systems:
    x86 in 32-bit mode: Linux, Solaris, FreeBSD
    x86 in 64-bit mode: Linux, Solaris, FreeBSD
    PowerPC: Linux, MacOSX
    SPARC: Linux
    ARM: Linux
On other supported systems you need to "./configure --enable-hipe".


If you are running on a platform supporting HiPE and if
you have not disabled HiPE, you can compile a module into
native code like this from the Erlang shell:

    c(Module, native).

or

    c(Module, [native|OtherOptions]).

Using the erlc program, write like this:

    erlc +native Module.erl

The native code will be placed into the beam file and automatically
loaded when the beam file is loaded.

To add hipe options, write like this from the Erlang shell:

    c(Module, [native,{hipe,HipeOptions}|MoreOptions]).

Use

    hipe:help_options().

to print out the available options.


Mac OS X (Darwin)
-----------------

We test Mac OS X 10.4.11 (Tiger) and Mac OS X 10.5.x (Leopard)
in our daily builds (but only on Intel processors).

Building on Mac OS X 10.3.x (Panther) might also work, but has
not been tested by us.

Make sure that the command "hostname" returns a valid fully qualified
host name (this is configured in "/etc/hostconfig").

If you develop linked-in drivers (shared library) you need to link
using "gcc" and the flags "-bundle -flat_namespace -undefined
suppress". You also include "-fno-common" in CFLAGS when
compiling. Use ".so" as the library suffix.

Universal 32bit binaries can be built on an Intel Mac using the
--enable-darwin-universal configure option. There still may occur
problems with certain applications using this option, but the base
system should run smoothly.

When building universal binaries on a PowerPC Mac (at least on Tiger),
you must point out a suitable SDK that contains universal binaries.
For instance, to build universal binaries for Tiger (10.4):

CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk" LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"     ./configure --enable-darwin-universal

Also, if you run Leopard, but want to build for Tiger, you must do

export MACOSX_DEPLOYMENT_TARGET=10.4

before running the above configure command.

Experimental support for 64bit x86 darwin binaries can be enabled
using the --enable-darwin-64bit configure flag. The 64bit binaries are
best built and run on Leopard, but most of the system also works on
Tiger (Tiger's 64bit libraries are, however, limited; therefore e.g. odbc,
crypto, ssl etc. are not supported in Tiger). 64bit PPC binaries are not
supported and we have no plans to add such support (no machines to
test on).

Universal binaries and 64bit binaries are mutually exclusive options.


Make and the variable "ERL_TOP"
-------------------------------

All the makefiles in the entire directory tree use the environment
variable ERL_TOP to find the absolute path of the installation. The
configure script will figure this out and set it in the top level
Makefile (which, when building, it will pass on). However, when
developing it is sometimes convenient to be able to run make in a
subdirectory. To do this you must set the ERL_TOP variable
before you run make.

For example, assume your GNU make program is called "make" and you
want to rebuild the application STDLIB, then you could do:

  cd lib/stdlib; env ERL_TOP=<Dir> make

where <Dir> would be what you find ERL_TOP is set to in the top level
Makefile.


Authors
-------
Authors are mostly listed in the application's AUTHORS files,
that is $ERL_TOP/lib/*/AUTHORS and $ERL_TOP/erts/AUTHORS,
not in the individual source files.


More Information
----------------

More information can be found at http://www.erlang.org.
二、自动安装

您可以使用以下列表中的任何一个源镜像只要往您的 /etc/apt/sources.list 文件中像下面这样添加一行:

deb http://cz.archive.ubuntu

 

分享到:
评论

相关推荐

    可在ubuntu上安装erlang的deb包

    5,安装成功,你谢谢deb包的开发者,然后代开ubuntu的terminal,输入erl命令即可运行。 6,安装失败,你骂我好了,并把你的ubunt版本、是否是在虚拟机和其下的虚拟机软件名称和版本与再其下的os名称和版本、硬件...

    centos6下离线安装erlang所需要的所有rpm包

    对于那些没有网络连接或者网络环境不稳定的情况,离线安装Erlang就显得尤为重要。在CentOS 6这个老版本的系统上,由于其自带的软件仓库可能不再支持最新的Erlang版本,因此我们需要手动下载并安装所需的RPM包。本文...

    ERLANG B(爱尔兰B表)

    Erlang B表,源于通信工程中的排队论,是由丹麦工程师A.K. Erlang提出的一种数学模型,用于预测电话交换机或通信系统中所需的中继线数量,以保证在特定呼叫强度下,用户能获得满意的服务质量。这个模型在现代通信...

    Erlang_B_model.rar_Erlang B _Erlang B model_Wireless Handbook_e

    **Erlang B模型**是通信工程领域中的一个重要概念,特别是在无线通信系统设计中用于评估系统容量和服务质量。这个模型由丹麦工程师A.K. Erlang提出,主要用于预测电话交换系统的呼叫损失概率,即在给定话务量下,...

    安装Erlang所需包

    在Linux CentOS操作系统上安装Erlang,需要一些特定的依赖包来确保编译和运行的顺利进行。本教程将详细讲解如何在CentOS上安装Erlang所需的包,以及如何处理提供的`otp_src_19.2`源代码文件。 首先,确保你的系统是...

    rabbitmq编译安装erlang的所需要的依赖rpm包

    RabbitMQ通常也提供源码安装方式,步骤与Erlang类似,但RabbitMQ的依赖主要基于Erlang环境,所以在Erlang成功安装后,RabbitMQ的安装会相对简单。 总的来说,对于ARM架构的系统,编译安装Erlang和RabbitMQ需要仔细...

    ErlangB_爱尔兰B公式_通信网络_

    Erlang B公式,也称为爱尔兰B公式,是通信网络中一个重要的理论工具,主要用于预测在给定服务速率下,多条电话线或信道如何有效地处理呼叫到达的流量。这个公式是由丹麦工程师A.K. Erlang在1909年提出的,它在现代...

    ubuntu20.04离线安装perf3

    在Ubuntu 20.04系统中离线安装iperf3是一个常见的需求,特别是在没有互联网连接或者网络环境受限的情况下。iperf3是一个强大的网络性能测试工具,它允许用户测量TCP和UDP带宽性能,这对于网络优化、服务器性能评估...

    erlang安装帮助包

    在没有网络连接的情况下,离线安装Erlang可能会遇到一些挑战,但通过使用提供的压缩包,我们可以遵循以下步骤进行安装。 首先,我们需要了解Erlang的基本结构和依赖。Erlang的安装通常包括运行时系统(erts)和各种...

    erlangB计算器

    Erlang B模型是通信系统设计中一个重要的理论工具,主要用来预测在特定呼叫速率下,多条并行服务通道能够处理的呼叫流量,以及因此产生的呼叫丢失率。这个模型由丹麦数学家Agner Krarup Erlang在20世纪初提出,常...

    Erlang B公式计算器

    Erlang B公式是通信网络领域中用于计算呼叫阻塞概率的重要工具,它在电路交换系统,特别是电话交换网络的设计中发挥着关键作用。这个压缩包包含了一个基于Erlang B公式的计算器程序,以及其源代码和实验报告,旨在...

    esl-erlang_20.3.6-1_ubuntu_trusty_amd64.deb

    erlang_20.3.6_ubuntu_trusty_amd64.deb,安装rabbmitmq需要用到

    windows下安装Erlang环境

    安装Erlang的过程包括下载官方提供的安装包,双击运行并按照向导完成安装,之后设置系统环境变量,将Erlang的bin目录添加到PATH中。最后,通过命令行输入`erl`命令,如果返回相关信息,表明Erlang已成功安装。 总之...

    Centos7安装erlang和RabbitMq.docx

    CentOS 7 安装 Erlang 和 RabbitMQ Erlang 是一种编程语言,用于构建可扩展、可靠和高性能的系统。RabbitMQ 是一个基于 Erlang 语言的消息队列服务器,用于实现消息队列、延迟消息、事务消息、消息确认机制等功能。...

    ErlangB-and-ErlangC.zip_erlangB_erlangb图_erlangb表_爱尔兰C公式_爱尔兰公式

    实现爱尔兰B公式和爱尔兰C公式,功能齐全,适用于通信网课程中的实验。

    ErlangB和ErlangC计算工具(exe可执行文件+excel两个)

    Erlang B和Erlang C是电信领域中两种重要的流量模型,用于预测和分析通信系统中的呼叫处理能力和拥塞情况。这两个模型由丹麦工程师Agner Krarup Erlang在20世纪初提出,至今仍广泛应用于现代通信网络的设计与优化。 ...

    Linux下安装erlang

    Linux下傻瓜式安装erlang

    Erlang-Formula.zip_Erlang B _Erlang-B_erlang_erlang B计算_erlang C

    Erlang B 和 Erlang C 是在电信领域中广泛使用的两个数学公式,用于预测和管理电话交换系统的呼叫处理能力。这两个公式由丹麦工程师 Agner Krarup Erlang 在20世纪初开发,对于理解通信系统中的呼叫占用率、阻塞率和...

    Erlang-B&C曲线MATLAB源码

    Erlang-B和Erlang-C曲线是通信工程和排队理论中的重要概念,它们用于分析电话交换系统和其他服务系统的性能。这两个模型可以帮助我们理解在给定资源限制下,多条电话线路或服务台如何处理呼叫或请求的流量。MATLAB...

Global site tag (gtag.js) - Google Analytics