Liteide ошибка процесс не удалось запустить

It’s not a good idea to keep your projects in the GOROOT path, which per default (when installed using the MSI installer) is C:\Go. Always keep it separated from there. It also helps to avoid issues with updates.

Since Go projects are made up of packages which are organized in directory structures it is important to follow a few rules and keep the working space for your Go projects separated and clean.

In my opinion its best practice to create ONE working directory as the root for ALL your Go projects somewhere in your user space and stick to it.

One way to do this is to create a directory like «work» and set the environment variable GOPATH to it (e.g. C:\Users\Peter\Documents\work). Make sure to relog or restart your computer after your changes.

Upon certain operations Go will automatically create the directories bin, pkg and src below your GOPATH.

  • src contains your created or downloaded Go source files,
  • pkg contains your installed package objects, and
  • bin contains your installed executable files.

bin or pkg will automatically be created when you use the go install command to install a binary executable or a package. It’s important to understand that these are files that are not part of the Go installation.

src, if it does not yet exist, will automatically be created the first time you issue a go get command or in case of LiteIDE, the first time you create a new Go1 Command Project or Go1 Package Project. Watch the «Location:» field on the dialog box, it should include your path defined in GOPATH followed by \src (e.g. C:\Users\Peter\Documents\work\src).

In the name field enter the path you want to use for your project. If you plan to track the development of your project on Github (or other repo) it’s common practice to include the path to the Git repo in your source path (e.g. github.com/petergloor/hello-go).

Of course you can use any other structure to organize your projects as long you make sure they fall below the src directory in your GOPATH.

For more information about Go workspaces read https://golang.org/doc/code.html#Workspaces.

A final note about the GOROOT environment variable. Dont explicitly set this if you install Go in C:\Go. It’s enough to include C:\Go\bin in your path and to set GOPATH. GOROOT is only needed in case Go is installed at another location.

Около недели назад я успешно установил golang на свой компьютер и получил команды терминала для обработки. Таким образом, я знаю, что go находится на моем компьютере.

Я искал хорошую IDE и нашел https://code.google.com/p/liteide/ LiteIDE, созданная специально для Go.

Я читал, что если у вас уже установлен go на вашем компьютере, вы можете использовать LiteIDE, чтобы сразу же начать создавать свой код. Я, должно быть, где-то прочитал что-то неправильно, потому что я вообще не могу заставить свои проекты строиться. Я думаю, что может быть отсутствующий/неправильный путь или что-то просто настроено неправильно.

Вот ошибка, которую я получаю в консоли:

Current environment change id "win64-user"
C:/go/bin/go.exe env [c:\go]
set GOARCH=amd64
set GOBIN=
set GOCHAR=6
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=
set GORACE=
set GOROOT=c:\go
set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
set TERM=dumb
set CC=gcc
set GOGCCFLAGS=-g -O2 -m64 -mthreads
set CXX=g++
set CGO_ENABLED=1
Command exited with code 0.
First_Lite_Go_Proj  [C:/go/src/First Litel Go Proj]
Error: process failed to start.

Я проверил каталог C:/go, чтобы все было правильно, и это было так. Также я использую 64-битную Windows 7 и дважды проверил это.

Любые идеи? Мои: Отсутствующие/Неправильные пути, Не удается получить доступ к определенному каталогу из-за ограничений.

7 ответов

Хотя я не проверял это в Windows 7, в Windows 10 это были шаги, которые я предпринял, чтобы заставить LiteIDE работать.

  1. Установлено Перейти к C:\Go
  2. Добавлен C:\Go\bin в PATH и удостоверился, что go работает из командной строки.
  3. Это был самый важный шаг для меня. Определено GOPATH в переменной среды. В моем случае это было C:\Users\vivek\Documents\Source\Go. Я также убедился, что в GOPATH были созданы три папки src, pkg и bin. В этот момент go env показывал мне правильные значения для GOPATH и GOROOT. go get, go build и go install также работали на этом этапе.
  4. Скачал и разархивировал LiteIDE в C:\liteide. Запустил LiteIDE, и у меня все заработало из коробки. Убедитесь, что GOPATH правильно отображается в LiteIDE, перейдя к View > Manage GOPATH

Надеюсь это поможет. Удачи.


1

Vivek
14 Дек 2015 в 10:11

Не рекомендуется хранить ваши проекты в пути GOROOT, который по умолчанию (при установке с помощью установщика MSI) — C:\Go. Всегда держите его отдельно от него. Это также помогает избежать проблем с обновлениями.

Поскольку проекты Go состоят из пакетов, которые организованы в структуру каталогов, важно следовать нескольким правилам и поддерживать чистоту рабочего пространства для ваших проектов Go.

На мой взгляд, лучше всего создать ОДИН рабочий каталог в качестве корня для ВСЕХ ваших проектов Go где-нибудь в вашем пользовательском пространстве и придерживаться его.

Один из способов сделать это — создать каталог типа «work» и установить для него переменную среды GOPATH (например, C:\Users\Peter\Documents\work). Не забудьте повторно войти или перезагрузить компьютер после внесения изменений.

После определенных операций Go автоматически создаст каталоги bin, pkg и src ниже вашего GOPATH.

  • src содержит созданные или загруженные вами исходные файлы Go,
  • pkg содержит установленные вами объекты пакета, и
  • bin содержит установленные исполняемые файлы.

Bin или pkg будут созданы автоматически, когда вы используете команду go install для установки двоичного исполняемого файла или пакета. Важно понимать, что это файлы, которые не являются частью установки Go.

Src, если он еще не существует, будет автоматически создан при первом выполнении команды go get или, в случае LiteIDE, при первом создании нового проекта Go1 Command или Проект пакета Go1. Обратите внимание на поле «Расположение:» в диалоговом окне, оно должно включать ваш путь, указанный в GOPATH, за которым следует \src (например, C:\Users\Peter\Documents\work\src).

В поле имя введите путь, который вы хотите использовать для своего проекта. Если вы планируете отслеживать разработку своего проекта на Github (или другом репозитории), обычной практикой является включение пути к репозиторию Git в исходный путь (например, github.com/petergloor/hello-go).

Конечно, вы можете использовать любую другую структуру для организации своих проектов, если вы убедитесь, что они находятся ниже каталога src в вашем GOPATH.

Для получения дополнительной информации о рабочих пространствах Go прочитайте https://golang.org/doc/code.html#Workspaces. .

Последнее замечание о переменной окружения GOROOT. Не устанавливайте это явно, если вы устанавливаете Go в C:\Go. Достаточно включить в путь C:\Go\bin и установить GOPATH. GOROOT нужен только в том случае, если Go установлен в другом месте.


1

Peter Gloor
7 Дек 2016 в 21:08

Попробуйте настроить GOROOT в каталоге, где был установлен go. Это сработало для меня.


0

connectwithpalaniappan
11 Июл 2014 в 21:17

У вас есть ключевое слово «Установить» в названии вашего проекта? Попробуйте удалить его.


0

James Wu
26 Авг 2016 в 03:18

Вы должны правильно настроить переменные LiteIDE (если их нет по умолчанию). Пожалуйста, проверьте два варианта:

  1. Перейдите в «Настройки» → «Управление GOPATH».
  2. Параметры → LiteEnv (есть файлы определений окружения). Просто дважды щелкните кого-нибудь и настройте переменные среды Go.

enter image description here

enter image description here


0

Anatolii Kosorukov
20 Авг 2017 в 15:18

Я не уверен, как это работает, но в моем случае это сработало. Я почерпнул эту идею из этого видео на Youtube — Крис Хоукс.

  1. Откройте LiteIDE.
  2. Щелкните Файл — Создать.
  3. Выберите «Командный проект Go1».
  4. Просмотрите нужный путь.
  5. Выберите нужную папку.
  6. Назовите папку и нажмите «ОК».
  7. Теперь вы сможете увидеть файл main.go, открытый в среде IDE.
  8. Напишите любой код, который вы хотите запустить в этом файле с правильным синтаксисом, он будет работать.

Единственная проблема заключается в том, что всякий раз, когда я создаю другой файл исходного кода «.go» в той же папке, отображается та же ошибка. Таким образом, вам, возможно, придется редактировать этот файл каждый раз, когда вы пытаетесь написать новый код.

See for reference


0

lousycoder
29 Дек 2019 в 13:27

About a week ago I installed golang successfully on my computer and got it’s terminal commands to process. So by that, I know go is on my computer.

I have been looking for a good IDE and found https://code.google.com/p/liteide/ LiteIDE which was made specifically for Go.

I read that if you already had go installed on your computer then you could use LiteIDE to start building your code right away. I must have read something wrong some where because I cannot get my projects to build at all. I think it there may be a missing/incorrect path and or something is just setup incorrectly.

This is the error I get in the console:

Current environment change id "win64-user"
C:/go/bin/go.exe env [c:\go]
set GOARCH=amd64
set GOBIN=
set GOCHAR=6
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=
set GORACE=
set GOROOT=c:\go
set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
set TERM=dumb
set CC=gcc
set GOGCCFLAGS=-g -O2 -m64 -mthreads
set CXX=g++
set CGO_ENABLED=1
Command exited with code 0.
First_Lite_Go_Proj  [C:/go/src/First Litel Go Proj]
Error: process failed to start.

I checked the C:/go directory to make everything there is correct and it was. Also I’m using 64bit windows 7 and double checked that as well.

Any ideas? Mine are: Missing/Incorrect Paths, Can’t access a certain directory due to restrictions.

While I have not tested this in Windows 7, on Windows 10, these were the steps that I took to make LiteIDE work

  1. Installed Go to C:\Go
  2. Added C:\Go\bin to PATH and made sure go was working from Command Line
  3. This was the most important step for me. Defined GOPATH in an environment variable. In my case, it was C:\Users\vivek\Documents\Source\Go. I also made sure that there were three folders src, pkg and bin were created in GOPATH. At this point go env was showing me correct values for GOPATH and GOROOT. go get, go build and go install was working as well at this step.
  4. Downloaded and unzipped LiteIDE to C:\liteide. Started LiteIDE and it worked out of the box for me. Make sure that GOPATH is seen correctly by LiteIDE by going to View > Manage GOPATH

Hope this helps. Good luck.

It’s not a good idea to keep your projects in the GOROOT path, which per default (when installed using the MSI installer) is C:\Go. Always keep it separated from there. It also helps to avoid issues with updates.

Since Go projects are made up of packages which are organized in directory structures it is important to follow a few rules and keep the working space for your Go projects separated and clean.

In my opinion its best practice to create ONE working directory as the root for ALL your Go projects somewhere in your user space and stick to it.

One way to do this is to create a directory like «work» and set the environment variable GOPATH to it (e.g. C:\Users\Peter\Documents\work). Make sure to relog or restart your computer after your changes.

Upon certain operations Go will automatically create the directories bin, pkg and src below your GOPATH.

  • src contains your created or downloaded Go source files,
  • pkg contains your installed package objects, and
  • bin contains your installed executable files.

bin or pkg will automatically be created when you use the go install command to install a binary executable or a package. It’s important to understand that these are files that are not part of the Go installation.

src, if it does not yet exist, will automatically be created the first time you issue a go get command or in case of LiteIDE, the first time you create a new Go1 Command Project or Go1 Package Project. Watch the «Location:» field on the dialog box, it should include your path defined in GOPATH followed by \src (e.g. C:\Users\Peter\Documents\work\src).

In the name field enter the path you want to use for your project. If you plan to track the development of your project on Github (or other repo) it’s common practice to include the path to the Git repo in your source path (e.g. github.com/petergloor/hello-go).

Of course you can use any other structure to organize your projects as long you make sure they fall below the src directory in your GOPATH.

For more information about Go workspaces read https://golang.org/doc/code.html#Workspaces.

A final note about the GOROOT environment variable. Dont explicitly set this if you install Go in C:\Go. It’s enough to include C:\Go\bin in your path and to set GOPATH. GOROOT is only needed in case Go is installed at another location.

I also had this problem first, but after completing the installation process, I succeeded.

Step 1:
Run (Ctrl+R) -> run target, request build first.
BuildAndRun(Ctrl+F7) -> build and run target
FileRun(Alt+F6) -> go run

step 2:
Check Config via this URL:
https://www.goinggo.net/2013/06/installing-go-gocode-gdb-and-liteide.html

Andrew

Guest


  • #1

Andrew Asks: LiteIDE won’t run code after building, Process failed to start
About a week ago I installed golang successfully on my computer and got it’s terminal commands to process. So by that, I know go is on my computer.

I have been looking for a good IDE and found https://code.google.com/p/liteide/ LiteIDE which was made specifically for Go.

I read that if you already had go installed on your computer then you could use LiteIDE to start building your code right away. I must have read something wrong some where because I cannot get my projects to build at all. I think it there may be a missing/incorrect path and or something is just setup incorrectly.

This is the error I get in the console:

Code:

Current environment change id "win64-user"
C:/go/bin/go.exe env [c:\go]
set GOARCH=amd64
set GOBIN=
set GOCHAR=6
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=
set GORACE=
set GOROOT=c:\go
set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
set TERM=dumb
set CC=gcc
set GOGCCFLAGS=-g -O2 -m64 -mthreads
set CXX=g++
set CGO_ENABLED=1
Command exited with code 0.
First_Lite_Go_Proj  [C:/go/src/First Litel Go Proj]
Error: process failed to start.

I checked the C:/go directory to make everything there is correct and it was. Also I’m using 64bit windows 7 and double checked that as well.

Any ideas? Mine are: Missing/Incorrect Paths, Can’t access a certain directory due to restrictions.

  • Zach Huxford
  • Main forum
  • Replies: 0

Zach Huxford Asks: Why is it okay for my .bashrc or .zshrc to be writable by my normal user?
My user ~/.zshrc file has the following default privileges

My understanding of user permissions is that any process spawned by my user will then have read/write permissions to this file.

In malicious hands this could probably be used to edit aliases or append a directory of the attackers choosing to the beginning of the $PATH. I’m concerned that a malicious program that I install on the user level could then trick me into somehow giving up my sudo password through this method.

Obviously I do trust most of the programs that I install to not be malicious, however, I do use npm as a package manager for my own projects which is commonly accepted to be a vector for malware due to the sheer number of dependencies each module and it’s dependencies can have.

I know that running sudo npm install -g is really bad practice but is using npm as a user which has write access to your main shell configuration file almost as bad just with a few extra steps in between, or am I lacking an understanding of how user permissions/shell configuration/npm works?

If this is insecure, then have I somehow missed security good practice for handling node js projects?

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

  • Amal P Ramesh
  • Main forum
  • Replies: 0

Amal P Ramesh Asks: SFTP user login details real-time filtering
I have enabled the SFTP login log into the default logfile /var/log/syslog and tried to filter the login time of each user and insert it into the database.

But the filtering is not worked as I expected.

Sample log file:

Code:

Jun 23 15:47:03 ip-172-16-0-62 systemd[24938]: Reached target Shutdown.
Jun 23 15:47:03 ip-172-16-0-62 systemd[24938]: Starting Exit the Session..c.
Jun 23 15:47:03 ip-172-16-0-62 systemd[24938]: Received SIGRTMIN+24 from PID 24980 (kill).
Jun 23 15:47:03 ip-172-16-0-62 systemd[1]: Stopped User Manager for UID 1051.
Jun 23 15:47:03 ip-172-16-0-62 systemd[1]: Removed slice User Slice of nidasu.
Jun 23 15:47:13 ip-172-16-0-62 systemd[1]: Created slice User Slice of ftpuser1.
Jun 23 15:47:13 ip-172-16-0-62 systemd[1]: Starting User Manager for UID 1069...
Jun 23 15:47:13 ip-172-16-0-62 systemd[1]: Started Session 11907571 of user ftpuser1.
Jun 23 15:47:13 ip-172-16-0-62 systemd[24987]: Listening on REST API socket for snapd user session agent.
Jun 23 15:47:13 ip-172-16-0-62 systemd[24987]: Reached target Paths.
Jun 23 15:47:13 ip-172-16-0-62 systemd[24987]: Reached target Timers.
Jun 23 15:47:13 ip-172-16-0-62 systemd[24987]: Reached target Sockets.
Jun 23 15:47:13 ip-172-16-0-62 systemd[24987]: Reached target Basic System.
Jun 23 15:47:13 ip-172-16-0-62 systemd[24987]: Reached target Default.
Jun 23 15:47:13 ip-172-16-0-62 systemd[24987]: Startup finished in 15ms.

Needs to filter user login messages, like:

Code:

Jun 23 15:47:13 ip-172-16-0-62 systemd[1]: Started Session 11907571 of user ftpuser1.

I need to grep it out by matching the string «Started Session 11907571 of user ftpuser1«

The session number 11907571 is a random number and usernames also differ so grepping can ignore the numbers and usernames, only need to check the string like: **»Started Session *** of user ***»

And need to parse the line and grep the date + time, and username then insert it into the MySQL database.

If there is any option to create a daemon process to run and insert the details into DB, it will help me to do the task.

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

  • gyandoo
  • Main forum
  • Replies: 0

gyandoo Asks: get nat port forwarding IP address
I am using an android phone that is connected to an openwrt router via usb tether

The android phone has a dynamic wan gateway on each reboot

To make things easy for me to connect to the webui of some of the apps on the android phone via the openwrt router, I created a port forwarding rule in openwrt and entered the wan ip of the android phone manually. port forwarding rule

On each reboot of the android phone, i will have to check the routes in openwrt, get the new wan ip and update the port forwarding rule, which is fine

to make things easier on my linux machine, id like to be able to use CLI to get that wan ip that i set in port forwarding i.e 192.168.1.1:32399

not that it matters, but curlftpfs ftp mounting isn’t playing well with nat, all other android app webui’s are working fine with the port redirect, curlftpfs requires the wan ip, it finds the wan ip in debug but skips it

thanks

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

  • Mithilesh
  • Main forum
  • Replies: 0

Mithilesh Asks: Using docker does not give error with sudo but using ctr does on starting a container
I am starting a container using the docker run command, it works fine. However when I try to start the same container using ctr command (irrespective of whatever snapshotter I use) I get this error:

Code:

sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?

The error is coming from one of the lines in the dockerfile which is prepended by sudo . Please note that I tried removing sudo but then it gives permission denied error. As per my understanding docker engine uses ctr under the hood. Then why does not working for ctr? How shall I proceed to de

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

  • Bryan Fury
  • Main forum
  • Replies: 0

Bryan Fury Asks: What are some of the latest Nike soccer shoes that have gained popularity among players and enthusiasts in recent years?
In recent years, the Nike Mercurial Vapor XI NJR soccer shoes have gained significant popularity among players and enthusiasts. These cleats, also known as the “Neymar edition”, are renowned for their explosive speed and agility on the field. With a lightweight and streamlined design, the Nike Mercurial Vapor allows players to move swiftly and effortlessly. Equipped with innovative technology and high-quality materials, these cleats offer exceptional traction and responsiveness, making them a top choice for players seeking optimal performance. The sleek aesthetic of the Nike Mercurial Vapor XI NJR, inspired by Neymar Jr., one of the world’s top soccer players, has contributed to their widespread acclaim among soccer enthusiasts.

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

  • AbdelKh
  • Main forum
  • Replies: 0

AbdelKh Asks: Can’t change TCP/IPv4 settings on windows 10
As I am trying to change my wireless IPv4 or DNS IP address, everything goes well until I click OK.

The adapter window pops up this error: "An unexpected condition occurred. Not all of your requested changes in settings could be made"

Picture of the error message

Even when I restored Windows, disabled and re enabled the adapter, the problem was not solved.

Any help would be appreciated.

Edit: I fixed that by resetting Windows 10. No other solution worked for me.

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

  • tintincutes
  • Main forum
  • Replies: 0

tintincutes Asks: Customer service access 2007 template
anybody is familiar with this? can you please help me understand where can I find the other tables, Cases_1 and Employees_1? If I click on the relationship I can see these tables but I can’t see that on the Main Page? are they some kind of being hidden?

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Pick a username
Email Address
Password

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

Понравилась статья? Поделить с друзьями:
  • Linux ошибка kernel
  • Linux отключить вывод ошибок
  • Linux логи ошибок диска
  • Linux канал ошибок
  • Linux как проверить диск на ошибки