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

Fork me on GitHub
隨筆 - 215  文章 - 13  trackbacks - 0
<2016年12月>
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567


專注即時通訊及網(wǎng)游服務(wù)端編程
------------------------------------
Openresty 官方模塊
Openresty 標(biāo)準(zhǔn)模塊(Opm)
Openresty 三方模塊
------------------------------------
本博收藏大部分文章為轉(zhuǎn)載,并在文章開頭給出了原文出處,如有再轉(zhuǎn),敬請保留相關(guān)信息,這是大家對原創(chuàng)作者勞動成果的自覺尊重?。∪鐬槟鷰聿槐?,請于本博下留言,謝謝配合。

常用鏈接

留言簿(1)

隨筆分類

隨筆檔案

相冊

Awesome

Blog

Book

GitHub

Link

搜索

  •  

積分與排名

  • 積分 - 221733
  • 排名 - 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>
            国产中文一区| 99亚洲精品| 性8sex亚洲区入口| 99在线精品观看| 国产精品ⅴa在线观看h| 亚洲自拍偷拍福利| 亚洲在线一区二区| 韩国免费一区| 欧美xx视频| 欧美精品粉嫩高潮一区二区| 亚洲剧情一区二区| 日韩亚洲欧美一区| 国产无一区二区| 欧美大片第1页| 欧美日本韩国一区二区三区| 亚洲欧美成人综合| 欧美在线免费视频| 亚洲免费不卡| 午夜精品影院| 亚洲国产电影| 一本久久综合亚洲鲁鲁五月天| 国产精品手机在线| 免费成人av在线看| 欧美天堂在线观看| 老鸭窝毛片一区二区三区| 欧美成人一区二区在线| 亚洲欧美日韩人成在线播放| 欧美一区在线视频| 国产精品99久久久久久久久久久久 | 久久国产一区| 99亚洲视频| 欧美专区日韩视频| 一区二区三区精品久久久| 性做久久久久久免费观看欧美| 亚洲国产裸拍裸体视频在线观看乱了中文 | 久久久久亚洲综合| 欧美日韩一区免费| 免费在线观看成人av| 欧美私人网站| 亚洲国产欧美在线 | 久久久97精品| 亚洲综合另类| 欧美激情按摩| 蘑菇福利视频一区播放| 国产精品嫩草影院一区二区| 亚洲第一在线视频| 激情欧美亚洲| 欧美一区二区免费观在线| 99这里只有久久精品视频| 久久久久久久久久久一区| 欧美一站二站| 国产精品卡一卡二| 宅男精品视频| 中文国产成人精品久久一| 欧美国产高清| 欧美激情精品久久久久久免费印度| 国产精品日韩欧美一区| 日韩亚洲欧美高清| 一区二区三区视频在线看| 欧美成人影音| 亚洲国产精品一区在线观看不卡| 1769国内精品视频在线播放| 午夜亚洲福利在线老司机| 亚洲欧美日韩在线一区| 欧美三级日韩三级国产三级| 亚洲美女av电影| 中文欧美字幕免费| 国产精品vip| 在线亚洲一区二区| 亚洲视频免费在线| 欧美性生交xxxxx久久久| 日韩午夜激情| 小嫩嫩精品导航| 国产日韩欧美视频在线| 欧美在线观看视频在线 | 亚洲激情六月丁香| 蜜桃久久精品一区二区| 欧美黄色小视频| 妖精视频成人观看www| 欧美精品一卡| 亚洲天堂视频在线观看| 午夜天堂精品久久久久 | 欧美风情在线观看| 9色porny自拍视频一区二区| 亚洲在线成人精品| 国产麻豆午夜三级精品| 久久精品国产精品| 亚洲黄色视屏| 午夜视频在线观看一区| 韩国av一区二区三区| 免费欧美日韩国产三级电影| 亚洲国产精品va在线看黑人| 一区二区三区欧美视频| 国产伦一区二区三区色一情| 久久国产精品黑丝| 亚洲国产精品久久久久婷婷老年 | 亚洲免费激情| 国产精品稀缺呦系列在线| 久久精品亚洲一区二区| 亚洲精品日韩综合观看成人91| 亚洲欧美一级二级三级| 在线不卡中文字幕| 欧美日韩中文字幕在线| 久久精品国产一区二区电影| 亚洲国产精品成人综合色在线婷婷 | 国产午夜精品全部视频在线播放 | 欧美乱大交xxxxx| 午夜精品区一区二区三| 欧美激情第五页| 亚洲尤物视频网| 亚洲国产经典视频| 国产精品入口66mio| 欧美成人在线免费视频| 欧美在线视频网站| 亚洲美女av电影| 免费成人av| 欧美中文在线观看国产| 亚洲裸体视频| 在线播放中文字幕一区| 国产精品二区二区三区| 久久综合激情| 欧美一区二区三区啪啪| 99视频一区二区| 亚洲国产mv| 美女视频黄a大片欧美| 亚洲欧美欧美一区二区三区| 亚洲精品久久久久中文字幕欢迎你| 国产精品素人视频| 欧美日韩综合在线免费观看| 免费观看30秒视频久久| 午夜久久久久| 一区二区三区四区国产| 日韩图片一区| 亚洲最新在线视频| 亚洲精品免费在线| 亚洲高清在线观看| 亚洲电影天堂av| 欧美激情精品久久久久久蜜臀| 久久久久在线| 久久欧美肥婆一二区| 久久精品国产亚洲一区二区三区| 亚洲一区国产| 一区二区三区视频在线看| 一本大道久久a久久综合婷婷| 亚洲国产婷婷香蕉久久久久久| 一区二区视频免费在线观看 | 国产精品视频免费观看| 国产精品国产自产拍高清av| 欧美天堂亚洲电影院在线观看| 欧美日本韩国一区二区三区| 欧美激情一区二区三区蜜桃视频| 免费在线看一区| 欧美精品入口| 欧美午夜精品伦理| 国产精品国产三级欧美二区 | 欧美午夜一区二区| 国产精品免费在线| 国产午夜亚洲精品羞羞网站| 国产一区二区三区日韩欧美| 红桃视频国产精品| 亚洲黄色片网站| 一本色道精品久久一区二区三区 | 亚洲激情精品| 一本色道久久综合亚洲精品小说| 一区二区三区高清在线| 亚洲男同1069视频| 久久久久国产精品人| 免费成人黄色| 日韩手机在线导航| 亚洲欧美在线高清| 久久女同精品一区二区| 欧美精品入口| 国产欧美在线播放| 亚洲国产一成人久久精品| 日韩五码在线| 久久精品国产精品亚洲精品| 欧美成人嫩草网站| 在线一区二区视频| 久久久五月婷婷| 欧美日韩亚洲一区| 一区精品在线| 亚洲一区bb| 欧美 日韩 国产一区二区在线视频| 91久久精品美女| 欧美在线三区| 欧美性事在线| 亚洲人成啪啪网站| 欧美一区网站| 99精品欧美一区二区蜜桃免费| 欧美一区亚洲| 国产精品毛片一区二区三区| 亚洲国产精品成人综合| 午夜视黄欧洲亚洲| 亚洲精华国产欧美| 久久久久九九九九| 国产精品伦一区| 99re热精品| 欧美搞黄网站| 久久久97精品| 国产尤物精品|