erlang intellij Mac将SDK主路径设置为/usr

zbq4xfa0  于 2022-12-08  发布在  Erlang
关注(0)|答案(3)|浏览(187)

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?

yqlxgs2m

yqlxgs2m1#

我在AskDifferent上找到了一个由bmike发布的similar solution
按shift + command + g将打开一个对话框,您可以在其中键入要打开的任何文件夹的路径。
或者,您可以按shift + command + .查看隐藏文件,然后导航到/usr/local/path/to/erlang

dw1jzc5e

dw1jzc5e2#

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!
rbl8hiat

rbl8hiat3#

我也不想“杂散链接”。尽管如此,我已经尝试过了,它甚至没有工作。你认为它是可能的改变它从一些配置文件~/库/首选项/IntelliJIdea 14我试图添加到(project.default.xml)的东西没有成功。

相关问题