FreeBSD12安装GoLand编辑器

作者: JavasBoy 分类: FreeBSD, Go 发布时间: 2020-11-28 02:02 ė 11,095 views 6 没有评论

最近重新燃起学 go 语言的兴趣,起因是修改一个告警信息发送到 IM 的脚本,刚拿到脚本一脸蒙,再后来又要修改这个脚本又是头大。都怪我之前没有学习 go 的基础语法,临时抱佛脚行不得。所以这次下得决心把 go 作为2021年必修技能。

为了减少家庭矛盾 !_!,把家里台式电脑主系统切换到了 FreeBSD,跟游戏彻底88了,经过一个多月已经没有想玩游戏的念头了,更多的时间是在陪家人及怎么打发业余时间,经常996+大小周工作制也没有多少自己的时间,所以现在才知时间的宝贵,而人已到中年。

下面记录了如何在 FreeBSD 里安装 openjdk,安装 jetbrains 出口的 goland IDE编辑器。

pkg search ^openjdk

openjdk8-8.265.01.1            Java Development Kit 8

pkg install openjdk8

New packages to be INSTALLED:
        java-zoneinfo: 2020.a
        javavmwrapper: 2.7.6
        openjdk8: 8.265.01.1

=====
Message from openjdk8-8.265.01.1:

--
This OpenJDK implementation requires fdescfs(5) mounted on /dev/fd and
procfs(5) mounted on /proc.

If you have not done it yet, please do the following:

        mount -t fdescfs fdesc /dev/fd
        mount -t procfs proc /proc

To make it permanent, you need the following lines in /etc/fstab:

fdesc   /dev/fd         fdescfs         rw      0       0
proc    /proc           procfs          rw      0       0

# java -version
openjdk version "1.8.0_265"
OpenJDK Runtime Environment (build 1.8.0_265-b01)
OpenJDK 64-Bit Server VM (build 25.265-b01, mixed mode)


pkg install openjdk8 cmake gdb

New packages to be INSTALLED:
        cmake: 3.18.3
        gdb: 9.2_1
        jsoncpp: 1.9.4
        mpfr: 4.1.0
        rhash: 1.3.9
        source-highlight: 3.1.9_1

Number of packages to be installed: 6


- Edit clion-2016.3/bin/idea.properties and change run.processes.with.pty=false
- Start CLion and open Settings | Build, Execution, Deployment | Toolchains
- Specify CMake path: /usr/local/bin/cmake and GDB path: /usr/local/bin/gdb


# pkg search jetbrains
jetbrains-clion-2020.2.4       JetBrains CLion IDE
jetbrains-goland-2020.1.4      JetBrains GoLand IDE
jetbrains-mono-2.001,1         Free and open source typeface for developers
jetbrains-phpstorm-2020.2.2    JetBrains PhpStorm IDE
jetbrains-webstorm-2019.3.2    JetBrains JavaScript IDE

pkg install jetbrains-goland-2020.1.4

New packages to be INSTALLED:
        delve: 1.5.0
        intellij-fsnotifier: 20160221_6
        jetbrains-goland: 2020.1.4

Number of packages to be installed: 3

The process will require 618 MiB more space.
196 MiB to be downloaded.


=====
Message from intellij-fsnotifier-20160221_6:

--
===>   NOTICE:

The intellij-fsnotifier port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port
=====
Message from delve-1.5.0:

--
Please execute the following commands to prep this system to run delve:

echo "# required for delve" >>/etc/sysctl.conf.local
echo "security.bsd.unprivileged_proc_debug=1" >>/etc/sysctl.conf.local

Then, either reboot or run the following commands to implement the above
changes:

service sysctl reload
=====
Message from jetbrains-goland-2020.1.4:

--
There is a native (faster) file watching support backed by kqueue which is
enabled by default.  If you encounter problems with watching large
trees, you can disable it by adding the following property via the menu
entry Help -> Edit Custom Properties...

      idea.filewatcher.disabled=true


# install golang
pkg install go

New packages to be INSTALLED:
        go: 1.15.5,1

Number of packages to be installed: 1

The process will require 283 MiB more space.
76 MiB to be downloaded.

go version
go version go1.15.5 freebsd/amd64


go env

GOPATH="/home/shing/go"
GOROOT="/usr/local/go"

本文出自刘荣星的博客,转载时请注明出处及相应链接。

本文永久链接: https://www.liurongxing.com/freebsd12%e5%ae%89%e8%a3%85golangd%e7%bc%96%e8%be%91%e5%99%a8.html

0

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Ɣ回顶部