Although it is a free version, I downloaded the GoLand editor to my Ubuntu environment. I referred to the following sites. Install Jetbrains GoLand Go IDE on Ubuntu JetBrains Goland IDE on Ubuntu
There is also a way to download using snapd, but this time I went to download from the site.
--The environment is Ubuntu --Go has already been downloaded locally
Download the version for Linux here. https://www.jetbrains.com/ja-jp/go/download/#section=linux
After downloading, unzip it and move it to the opt
folder.
Of course, it seems to be OK in other places.
After moving, execute the shell file and launch it.
$ cd Downloads
$ sudo tar xzf goland-2020.3.1.tar.gz -C /opt
$ ls -l /opt
total 12
drwx--x--x 4 root root 4096 November 20 01:33 containerd
drwxr-xr-x 8 root root 4096 January 11 23:19 GoLand-2020.3.1
drwxr-xr-x 3 root root 4096 November 20 10:46 google
$ /opt/GoLand-2020.3.1/bin/goland.sh
A screen like this will appear, but select Do not import settings
to proceed.
I don't have a license, so I'll use the free version. If you select Evaluate for free
and proceed with the one you do not have, you will finally reach this screen.
It is troublesome to execute and launch the shell file every time, so create the file in the application directory as follows. This time the version is 2020.3.1
, so enter as follows. If the version changes, please enter a different version name.
$ cd /usr/share/applications/
$ sudo vi Goland.desktop
[Desktop Entry]
Name=Goland
Comment=Goland IDE
Exec=/opt/GoLand-2020.3.1/bin/goland.sh
Icon=/opt/GoLand-2020.3.1/bin/goland.png
Type=Application
Terminal=false
Encoding=UTF-8
Give permission to the created file.
$sudo chown my username Goland.desktop
$ sudo chmod 755 Goland.desktop
You can now open it from within the application.
By the way, if you want to open it on Desktop, you can copy the previous file to Desktop.
$ cp Goland.desktop /home/user/Desktop/
Select New Project.
Create based on the GOROOT that is already in.
Make the familiar Hello World
every time.
If you press Run from the Run menu above, go build hello.go
will appear. Click it.
Hello World is output!
that's all. It's a free version, so it can only be used for 30 days, but ...
Recommended Posts