Although I set up an environment, I searched the internet and many netizens gave me installation tips. However, due to the first operation, there were some minor issues
A lot. It took a while to test the functions in the module from the installation environment to using erlide.
Depressed! Next we will share with you the installation and usage records.
1. Install eclipse first. I have installed version 3.4.2. Download the corresponding release version as needed.
Http://www.eclipse.org/downloads/
2. Download and install Erlang.
I installed 5.6.5 R12B-5 version.
Http://www.erlang.org/download.html
NOTE: For the first time, it is recommended that you download a version that has been successfully installed on the Internet,
I have encountered installation problems, so it is best to install it in strict accordance with the above eclipse and Erlang versions.
3. Install the erlide plug-in
Open eclipse, select [help]-> [software updates...] from the menu, click the [available software] tab, and click
[Add site...], enter the URL http://erlide.sourceforge.net/update, open the folding cross frame of the primary network, wait a moment,
Multiple versions are displayed. Select the version you want to install and click the [install...] button on the right side. After installation, restart.
4. Configure erlide
Choose [Window]> [preference] from the menu, find [Erlang]-> [installed runtimes] In the left-side Navigation Pane, and click
Click the [add] button on the edge and select the path where you want to install Erlang. If you have multiple Erlang installation versions, you can set them in sequence.
Now, erlide has been set up! The following describes how to use this erlide.
1. Create a project.
Select [file]-> [new]-> [project] from the menu, and then select [Erlang]-> [Erlang project]. Enter the project name, such as "eltest". Click [next] for the remaining settings by default, and then click [finish].
2. Create a module
Right-click [SRC] in the new project on the left, select [new module], and fill in the following information in the pop-up window.
Module name: Test (note that test must be in lower case !!!!!!!!!!!!)
Container:/eltest/src (default)
Application name: none (default)
Skeleton: module (default)
Enter "say" and "0" in the bottom two input boxes, and then click "Apply. Click the [finish] button.
Edit the newly generated module as follows:
Complete your code, add your own functions, and remove some text without comments. Otherwise, an error is reported.
3. Configure and run the project
Right-click the project and choose [run as]> [run deployments]. In the displayed window, right-click [Erlang application] on the left and choose [new].
On the [main] page on the right, select the project to run (eltest by default ),
On the [runtimes] Page, select, and enter the following
Runtime: erl5.6.5
Nodename: Test
COOKIE: by default, nothing is entered
Select [start the Erlang node if not running already]
Then click the [run] button.
Finally, in the console window below, enter test: Say ().
(Pay attention to the following sentence .)
You will see the legendary Hello, world.
Http://blog.csdn.net/huangyong19870618/archive/2011/01/21/6156454.aspx