青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

Fork me on GitHub
隨筆 - 215  文章 - 13  trackbacks - 0
<2018年1月>
31123456
78910111213
14151617181920
21222324252627
28293031123
45678910


專注即時通訊及網游服務端編程
------------------------------------
Openresty 官方模塊
Openresty 標準模塊(Opm)
Openresty 三方模塊
------------------------------------
本博收藏大部分文章為轉載,并在文章開頭給出了原文出處,如有再轉,敬請保留相關信息,這是大家對原創作者勞動成果的自覺尊重!!如為您帶來不便,請于本博下留言,謝謝配合。

常用鏈接

留言簿(1)

隨筆分類

隨筆檔案

相冊

Awesome

Blog

Book

GitHub

Link

搜索

  •  

積分與排名

  • 積分 - 221472
  • 排名 - 117

最新評論

閱讀排行榜

https://www.jetbrains.com/help/idea/getting-started-with-erlang.html

Getting Started with Erlang

Erlang is a great language that lets you build highly concurrent applications. This tutorial will teach you how to quickly get started with it.

In this section:

Preliminary steps

Installing Erlang OTP

The first thing for setting up an Erlang environment is installing Erlang OTP, a set of Erlang libraries essential for development.

Windows

If you are a Windows user, download the Erlang OTP package and run the installation wizard. Once the installation is over, add the installation path plus \bin to the PATH environment variable.

macOS

If you are an macOS user, to install Erlang OTP, type the following at the Terminal prompt (make sure you have Homebrew installed on your machine):

brew install erlang

If you prefer MacPorts to Homebrew, your command line should be different:

port install erlang +ssl

Linux

The installation process for Linux is similar to macOS, except that instead of brew or port you have to use apt-get (a Linux package management utility):

apt-get install erlang

Verifying Erlang OTP installation

To verify that Erlang OTP is installed correctly, run the Erlang shell by typing erl in a Terminal prompt:

erlang otp

To learn more about the Erlang shell, read its user guide.

Installing Rebar

In addition to Erlang OTP, you’ll also need Rebar, a build tool that helps compile and test Erlang applications. The easiest way to install it on your machine is to download its sources and build it locally:

git clone git://github.com/rebar/rebar.git $ cd rebar $ ./bootstrap Recompile: src/getopt ... Recompile: src/rebar_utils ==> rebar (compile)

Congratulations! You now have a self-contained script called "rebar" in your current working directory. Place this script anywhere in your path and you can use rebar to build OTP-compliant apps.

Setting up IntelliJ IDEA

Now when Erlang OTP and Rebar are set up, it’s time to download and install IntelliJ IDEA. Keep in mind, that for Erlang development you can use IntelliJ IDEA Community Edition (which is free and open-source).

Once the IDE is up and you see its Welcome screen, go to Configure | Plugins, then click Browse repositories, locate the Erlang plugin and install it:

erlang plugin

After installing the plugin, restart IntelliJ IDEA.

Configuring an Erlang SDK

One more thing you’ll have to do to configure IntelliJ IDEA is to add an Erlang SDK.

To do that, change the structure of the default project. Open the default project structure in one of the two ways:

  • On the Welcome screen, go to Configure | Project Defaults | Project Structure
  • On the main menu, choose File | Other Settings | Default Project Structure

Then, add an Erlang SDK by specifying the path to the Erlang OTP installation directory.

erlang sdk

If you don’t know where Erlang OTP was installed, check the following directories:

  • WindowsC:\Program Files\erl<version>
  • Linux/usr/lib/erlang/<version>
  • MacPorts, macOS/opt/local/lib/erlang/<version>
  • Homebrew, macOS/usr/local/Cellar/erlang/<version>

Configuring Rebar

The final adjustment you have to do is to specify the path to Rebar, so that IntelliJ IDEA can run Rebar commands from the IDE.

You can do it via Configure | Preferences | Other Settings → Erlang External Tools:

erlang rebar configure

Creating a new project

Creating an Erlang project

There are several ways to create a new Erlang project. The easiest one is to use the New Project Wizard from the Welcome screen.

Click Create New Project:

erlang create new project

Then choose Erlang in the left pane, and click Next.

erlang create new project erlang

IntelliJ IDEA prompts you to choose an Erlang SDK (which you've already configured):

erlang create new project sdk

After that you’ll be asked to specify the name of your project and its directory. The following image shows the resulting Erlang project with the name ErlangDemo:

erlang project

Creating a Rebar project

Instead of a pure Erlang project, you might want to create a Rebar project. To do that, type the following code at the Terminal prompt:

rebar create-app appid=<project name>

Once the project has been created, import it into IntelliJ IDEA to make it possible to open this project in the IDE.

Importing a project into IntelliJ IDEA

You can import a project into IntelliJ IDEA in several ways. Let's explore importing from the Welcome screen.

To import an existing project into IntelliJ IDEA, click Import on the Welcome Screen, and choose the project directory. IntelliJ IDEA offers you to either import the project from existing sources, or from an external model (a build file).

If your project uses Rebar, select the corresponding option when asked.

erlang import project

When importing a Rebar project, make sure to enable the option Fetch dependencies with rebar:

erlang import project fetch

Running and debugging an application

To run an application, you have to create a run/debug configuration created against the stub Erlang Application. To do this, on the main menu choose Run | Edit Configurations, select the stub Erlang Application, specify the name (here it is hello.hello_world), and specify the application’s module and function:

erlang run config

After that you’ll be able to run your application via the main menu (Run | Run <run configuration name>, the toolbar (run), or a even a shortcut (Ctrl+Shift+F10).

Once you have a run/debug configuration, you can also debug your application via the main menu (Run | Debug ‘<run configuration name>, the toolbar (debug), or a shortcut (Shift+F9):

erlang debug

For more information, refer to the concept of a run/debug configuration and the procedural sections Running Applications and Debugging.

Running Eunit tests

Running Eunit tests is similar to running an application, but needs a different run/debug configuration, created against the stub Erlang Eunit:

erlang eunit config

IntelliJ IDEA provides a handy Test Runner with support for Eunit. It shows test results, lets you rerun tests of you choice, jump to failed tests, etc.:

erlang test

Running Rebar commands

Running Rebar commands is also possible right from the IDE – with the help of the Erlang Rebar run/debug configuration:

erlang rebar run config

Note that if your Rebar commands run tests, you can use a Erlang Rebar Eunit run/debug configuration to see test results in a Test Runner.

Additional

Learning Erlang

To learn Erlang, we recommend that you start by reading the official Erlang user guide, and of course the Learn You Some Erlang for Great Good tutorial by Fred Hebert.

Learning IntelliJ IDEA

IntelliJ IDEA is a Java IDE in the first place, however it’s also a platform and IDE for other languages, such as Erlang, Python, Ruby, PHP, and many other. To learn more about IntelliJ IDEA, it’s worth checking out the section Discover IntelliJ IDEA and watch the Video Tutorials.

If you have a question, you can always ask it on StackOverflow (probably it’s already answered).

Providing Feedback

In case you’d like to share your feedback about IntelliJ IDEA or its support for Erlang, feel free to submit an issue in Erlang plugin GitHub repository, or to the IntelliJ IDEA issue tracker.

Refer to the section Reporting Issues and Sharing Your Feedback.

posted on 2018-01-22 13:49 思月行云 閱讀(961) 評論(0)  編輯 收藏 引用 所屬分類: Erlang
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            亚洲一区在线免费观看| 香蕉久久a毛片| 亚洲国产精品va在线看黑人 | 性欧美办公室18xxxxhd| 国产精品99久久久久久人| 国产精品久久久久久久久免费桃花 | 中文国产成人精品| 国产精品欧美在线| 久久久中精品2020中文| 久久久久久久综合日本| 亚洲欧洲一级| 在线视频你懂得一区二区三区| 国产精品视频午夜| 久久午夜色播影院免费高清| 猫咪成人在线观看| 中文网丁香综合网| 久久成人综合网| 亚洲精品乱码视频 | 欧美在线免费视屏| 久久久xxx| 亚洲久色影视| 欧美一级精品大片| 亚洲精品你懂的| 亚洲欧美春色| 日韩天堂av| 欧美一级久久久久久久大片| 亚洲精品影视在线观看| 亚洲欧美中文在线视频| 亚洲精品国产精品久久清纯直播| 亚洲视频在线观看视频| 91久久精品一区| 亚洲欧美日韩国产中文 | 欧美视频在线观看| 裸体女人亚洲精品一区| 国产精品久久久久久户外露出| 久久免费的精品国产v∧| 欧美日韩亚洲国产精品| 欧美成人午夜免费视在线看片| 国产精品家庭影院| 亚洲国产成人午夜在线一区| 国产欧美在线观看一区| 日韩视频永久免费观看| 亚洲风情在线资源站| 亚洲女同同性videoxma| 在线一区二区日韩| 欧美mv日韩mv亚洲| 免费在线播放第一区高清av| 国产精品天美传媒入口| av不卡免费看| 一二三区精品福利视频| 蜜臀va亚洲va欧美va天堂| 久久精品综合网| 国产欧美精品国产国产专区| 99re8这里有精品热视频免费| 亚洲国产小视频| 久久亚洲私人国产精品va媚药| 久久gogo国模裸体人体| 国产精品爽爽ⅴa在线观看| 日韩天天综合| 亚洲一区二区三区四区中文| 欧美日韩国产欧美日美国产精品| 欧美国产先锋| 亚洲精品乱码久久久久久| 免费亚洲电影| 亚洲大黄网站| 日韩一级二级三级| 欧美日韩喷水| 一区二区三区精品国产| 亚洲欧美一区二区在线观看| 国产精品视频| 欧美亚洲免费电影| 久久久久国色av免费观看性色| 国产精品在线看| 香蕉久久夜色精品国产| 久久久精品tv| 一区二区三区在线视频观看| 久久高清免费观看| 另类人畜视频在线| 亚洲人成网站影音先锋播放| 欧美大片在线影院| 99视频精品免费观看| 欧美一区二区三区另类| 狠狠色狠狠色综合日日五| 久久久久中文| 亚洲精品系列| 欧美一区二区三区在线看| 韩国免费一区| 欧美日韩成人精品| 亚洲欧美日韩人成在线播放| 久久综合久久综合久久| 日韩香蕉视频| 国产精品视频yy9099| 久久免费一区| 99视频一区二区| 久久久五月婷婷| 99国产精品久久久久久久| 久久露脸国产精品| 亚洲国产精品久久久久秋霞影院 | 欧美在线亚洲在线| 国产亚洲欧美日韩日本| 蜜桃av一区二区| 这里只有精品丝袜| 免费人成精品欧美精品| 亚洲一区免费观看| 伊人蜜桃色噜噜激情综合| 欧美激情综合| 欧美在线不卡视频| 亚洲人成小说网站色在线| 欧美一级日韩一级| 亚洲精品三级| 国内精品久久久久久影视8| 免费高清在线一区| 亚洲在线一区二区三区| 亚洲成人在线视频播放 | 性刺激综合网| 亚洲欧美中文字幕| 亚洲精品一区二区在线| 国产精品红桃| 一区二区三区你懂的| 麻豆精品精品国产自在97香蕉| 欧美激情综合| 亚洲精品乱码久久久久久蜜桃麻豆 | 亚洲精品一区二区三区蜜桃久 | 午夜精品久久久久久久白皮肤| 国产精品影视天天线| 欧美一区激情视频在线观看| 国内外成人在线视频| 午夜精品久久久99热福利| 亚洲国产精品视频| 久久久久国内| 亚洲欧美日韩在线高清直播| 亚洲人成网在线播放| 好看的日韩视频| 国产日韩在线看| 欧美日韩裸体免费视频| 欧美大片在线观看一区二区| 久久亚洲一区二区| 久久久久88色偷偷免费| 午夜在线精品偷拍| 亚洲欧美日韩国产综合在线 | 欧美成人精品福利| 久久亚洲春色中文字幕久久久| 亚洲欧洲av一区二区三区久久| 一本久久综合亚洲鲁鲁| 亚洲人成网站777色婷婷| 亚洲高清资源| 亚洲高清在线观看一区| 亚洲高清中文字幕| 亚洲国产精品高清久久久| 亚洲第一成人在线| 亚洲第一页自拍| 在线免费观看欧美| 亚洲日本va午夜在线影院| 亚洲日本视频| 一区二区三区回区在观看免费视频| 亚洲破处大片| 在线综合亚洲欧美在线视频| 一区二区三区日韩欧美| 亚洲永久网站| 久久精品一区二区三区不卡| 久久亚洲精品视频| 亚洲福利视频一区| 亚洲乱亚洲高清| 亚洲男人的天堂在线观看| 欧美一区日韩一区| 欧美 日韩 国产精品免费观看| 欧美国产日本| 国产精品美女久久久久久久| 国产日韩亚洲欧美精品| 亚洲国产成人在线播放| 一区二区日韩精品| 久久电影一区| 亚洲福利国产精品| 在线亚洲精品| 快播亚洲色图| 欧美午夜精品一区二区三区| 国内外成人免费激情在线视频 | 欧美日韩精品伦理作品在线免费观看| 欧美视频四区| 精品不卡在线| 在线亚洲自拍| 另类图片综合电影| 宅男66日本亚洲欧美视频| 久久9热精品视频| 欧美日韩在线播放一区| 好男人免费精品视频| 亚洲调教视频在线观看| 另类成人小视频在线| 亚洲天堂成人在线观看| 久久中文字幕一区| 国产欧美一区二区精品性色| 亚洲黑丝一区二区| 久久国产精品久久久| 亚洲精品国产精品国产自| 久久爱www久久做| 国产精品久久久久影院色老大| 亚洲人成在线观看| 久久免费观看视频| 亚洲欧美激情视频| 欧美日韩综合|