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

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

搜索

  •  

積分與排名

  • 積分 - 219651
  • 排名 - 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 思月行云 閱讀(951) 評論(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>
            欧美精品久久久久久久免费观看 | 亚洲人妖在线| 久久久精品一区| 精品1区2区3区4区| 欧美激情成人在线| 欧美色区777第一页| 亚洲综合日本| 久久精品国产久精国产爱| 影视先锋久久| 亚洲精品色婷婷福利天堂| 国产精品久久久久久超碰| 欧美一区1区三区3区公司| 欧美自拍偷拍午夜视频| 亚洲国产精品成人久久综合一区 | 亚洲影视在线播放| 久久精品国产精品| 在线亚洲高清视频| 久久不射中文字幕| 一区二区三区色| 久久成人资源| 亚洲与欧洲av电影| 另类综合日韩欧美亚洲| 夜夜夜精品看看| 久久精品123| 亚洲一区免费在线观看| 久久福利精品| 亚洲一区二区动漫| 乱人伦精品视频在线观看| 亚洲一区二区高清视频| 久久婷婷激情| 久久激五月天综合精品| 欧美www视频| 久久久亚洲一区| 欧美视频一区二区三区四区| 久久综合色婷婷| 国产精品剧情在线亚洲| 欧美激情第9页| 国产亚洲一级| 亚洲尤物视频网| av成人国产| 欧美国产日韩免费| 麻豆久久精品| 国产自产女人91一区在线观看| 亚洲精品视频啊美女在线直播| 精品成人国产在线观看男人呻吟| 这里只有精品丝袜| 亚洲午夜精品福利| 国产精品99久久久久久久久| 久久青青草原一区二区| 久久精品99久久香蕉国产色戒| 国产精品成人一区二区艾草| 亚洲国产裸拍裸体视频在线观看乱了中文 | 亚洲免费福利视频| 亚洲精品久久久一区二区三区| 久久aⅴ国产紧身牛仔裤| 欧美一区二区女人| 国产精品久久久久999| 日韩亚洲不卡在线| 亚洲一区二区三区成人在线视频精品| 欧美电影在线观看完整版| 牛牛影视久久网| 1024亚洲| 欧美91视频| 亚洲激情视频| 在线亚洲伦理| 国产精品卡一卡二| 亚洲欧美激情一区| 欧美在线日韩| 狠狠狠色丁香婷婷综合激情| 欧美中文字幕精品| 欧美波霸影院| 日韩亚洲一区二区| 国产精品乱人伦中文| 亚洲系列中文字幕| 久久久不卡网国产精品一区| 国产字幕视频一区二区| 久久这里有精品视频| 亚洲国产导航| 亚洲一区图片| 国内精品久久久久影院 日本资源| 欧美亚洲三级| 欧美激情欧美激情在线五月| 一本色道久久99精品综合| 国产精品a级| 久久爱www久久做| 亚洲国产一区二区三区高清| 亚洲视屏一区| 黑人一区二区| 欧美精品在线免费观看| 亚洲女ⅴideoshd黑人| 美日韩精品免费| 这里只有精品视频| 国产一区二区三区久久精品| 久久尤物视频| 亚洲图片欧美午夜| 欧美激情bt| 久久aⅴ乱码一区二区三区| 在线日本欧美| 国产精品入口麻豆原神| 久久亚洲午夜电影| 亚洲午夜激情网站| 欧美激情一区二区三区在线视频观看 | 日韩视频中文字幕| 久久一区二区三区超碰国产精品| 日韩亚洲视频| 在线观看精品| 国产日韩综合| 欧美新色视频| 欧美顶级少妇做爰| 久久国产精品99久久久久久老狼| 亚洲人成在线影院| 久久综合导航| 久久成人免费网| 亚洲午夜极品| 日韩午夜视频在线观看| 精品999在线观看| 国产精品亚洲激情| 欧美日韩在线播放| 乱人伦精品视频在线观看| 亚洲综合社区| 一区二区三区视频在线看 | 亚洲一区二区精品视频| 在线精品视频一区二区三四| 国产麻豆日韩欧美久久| 欧美日韩一区二区三区在线| 欧美v日韩v国产v| 久久综合久久综合这里只有精品| 午夜亚洲福利| 亚洲免费在线视频一区 二区| 91久久国产精品91久久性色| 免费看黄裸体一级大秀欧美| 久久精品人人做人人爽| 欧美一级淫片aaaaaaa视频| 亚洲午夜未删减在线观看| 99精品国产在热久久婷婷| 日韩网站在线观看| 夜夜嗨av一区二区三区中文字幕 | 久久免费视频网站| 久热精品视频在线观看一区| 久久狠狠亚洲综合| 久久久美女艺术照精彩视频福利播放 | 国产日韩欧美在线| 国产亚洲成av人在线观看导航| 国产精品剧情在线亚洲| 国产精品外国| 国产亚洲亚洲| 亚洲高清123| 亚洲麻豆国产自偷在线| 99精品99| 亚洲欧美日韩一区二区在线| 亚洲自拍16p| 久久福利毛片| 猛男gaygay欧美视频| 亚洲成色www8888| 亚洲国产精品久久久久| 亚洲精品国产精品国自产观看浪潮| 亚洲日本无吗高清不卡| 一本色道**综合亚洲精品蜜桃冫| 一本色道久久综合亚洲精品不| 亚洲桃色在线一区| 久久国产精品网站| 欧美激情在线有限公司| 国产精品黄色| 极品av少妇一区二区| 亚洲黄色免费网站| 亚洲欧美精品一区| 久久综合色综合88| 日韩视频一区二区| 欧美一级片一区| 欧美电影免费观看网站| 国产精品久久久久久福利一牛影视 | 欧美 日韩 国产一区二区在线视频 | 国产精品网站在线| 亚洲国产第一| 亚洲综合精品一区二区| 久久深夜福利免费观看| 亚洲狠狠丁香婷婷综合久久久| 一区二区av在线| 久久一区二区三区av| 欧美日一区二区三区在线观看国产免 | 欧美三级欧美一级| 伊人狠狠色j香婷婷综合| 一区二区三区 在线观看视频| 久久久av毛片精品| aa成人免费视频| 美女被久久久| 国产一区av在线| 亚洲网在线观看| 亚洲成色精品| 久久av资源网| 国产精品日韩欧美| 日韩视频专区| 美女国内精品自产拍在线播放| 日韩图片一区| 欧美大片国产精品| 加勒比av一区二区| 久久国产综合精品| 亚洲婷婷免费| 国产精品国产福利国产秒拍| 在线免费观看成人网|