2

Using Intellij IDEA 14.1.2 I am trying to set an Erlang SDK home path, the only option I have for doing this is a file browser that does not let me view my /usr/local file. That is, I have no option for typing the desired path. I am forced to use the Apple gui file browser (that does not show /bin or /usr)

File -> Project Structure -> SDK's

I made a sym-link, but I don't really want stray links.

ln -s /usr/local/path/to/erlang ~/erlang

I can "type" the classpath and sourcepath but not the main "Erlang SDK home path:"

any ideas?

3 Answers 3

12

I found a similar solution on AskDifferent posted by bmike:

Pressing shift + command + g will open a dialog where you can type the path of any folder that you want to open.

Or, you can press shift + command + . to see hidden files and then navigate to /usr/local/path/to/erlang.

1

Solution: installing erlang in a directory visible for Intellij IDEA

Steps:
// 1-7 could be found here http://www.erlang.org/doc/installation_guide/INSTALL.html
1. Download "OTP 17.5 Source File" from http://www.erlang.org/download.html
2. $ tar -zxf otp_src_17.5.tar.gz (unpack)
3. $ cd otp_src_17.5
4. $ export ERL_TOP='pwd'
5. $ ./configure --prefix=/users/myuser/otp (use obsolete path; "~/" didn't work for me)
6. $ make
7. $ sudo make install
//
8. File -> Project Structure -> SDK's (chose /users/myuser/otp)
9. Finally to be able to use erlang from command line still; edit or create .bash_profile in the home directory and add the erlang's directory to the PATH variable (export PATH=${PATH}:/users/myuser/otp/bin/)
10. Finally Finally :) $ source .bash_profile

For me that did the job!

0

I also didn't want "stray links". Nevertheless, I have tried it and it didn't even work. Do you think it's possible to change it from some config file ~/Library/Preferences/IntelliJIdea14 I tried to add to (project.default.xml) something like with no success.

4
  • tbh it's probably easier just using emacs, there is a nice mode for erlang
    – beoliver
    May 25, 2015 at 17:05
  • can I install erlang on a different location ~/ for example ? May 25, 2015 at 18:44
  • As far as I am aware you can. Did you try making a sym-link? that should work fine
    – beoliver
    May 25, 2015 at 21:31
  • I have tried sym-link, you browse the directory but when choosing it I got (The selected directory is not a valid home for Erlang SDK) May 26, 2015 at 8:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.