I am trying to install the meld(https://meldmerge.org/) package into Rhel6.5. I found an rpm on rpmbone(http://rpm.pbone.net/info_idpl_16047923_distro_redhatel6_com_meld-1.4.0-1.el6.rf.noarch.rpm.html).
I do not have root privileges and internet access. Thus I try to use 'https://github.com/mathieucaroff/user-yum.sh' this repository to install the meld into my home directory.
After I installed the rpm with the 'user-yum', the meld could not start because of the following error.
import meld.paths ImportError: No module named meld.paths
After I search the meld package, it requires python-site packages(https://mail.gnome.org/archives/meld-list/2016-May/msg00007.html). And it is not possible to install meld as python package on the user environment on Rhel6.5.
Therefore, Instead of installing as an rpm, creating a bundle with all the required files solves the problem.
Download bundle here!
Installation steps are:
Transfer the tar file to your home directory.
tar -xf meld-1.6.0.tar.xz - Extract files.
cd ~/meld-1.6.0/bin - Navigate the meld binary directory.
echo "PATH=\"$(pwd):\$PATH\"" >> ~/.bashrc - Add current directory to path.
source ~/.bashrc - Source the bashrc.
meld - Run meld to verify.
Related
After I have run
anaconda-project add-packages python=3.5
there downloaded some dependencies.
Where those downloading locate in? and How could I delete those files by anaconda command line?
If you had created a virtual environment, then you can find the location of the packages by
$ echo $VIRTUAL_ENV
The packages are stored inside lib/ directory. You can delete the files manually or use conda remove --force
The real problem here is, anaconda-project run under a installed env, it will install the absent packges in this env by default.
For example, I'm trying to install pipenv using the following commands:
$ pip3 install --user pipenv
$ cd ~/Documents/myproject
$ pipenv install requests
zsh: command not found: pipenv
It seems that the issue can be resolved if I run sudo ln -s ~/.local/bin/pipenv /usr/bin. Is this a safe thing to do? I've also been having this issue with several other packages, like tensorboard and xflux. Is there something wrong with my system that makes it such that I need to manually create a symlink every time? How can I change things so that packages can install normally without me having to do this every time?
The problem you are having is that the tools you are installing are being installed in non-standard locations and are not being included in your PATH. One way to resolve this would be to include the paths in your PATH environment variable. In order for these programs to be in your path every time you login, do this (assuming you are using zsh as your shell):
1) Open ~/.zshrc using vim or any other editor:
vim ~/.zshrc
2) Append the following to this file:
export PATH=$PATH:/path/to/dir/containing/pipenv
Remember to replace /path/to/dir/containing/pipenv with the appropriate path.
3) Source your ~/.zshrc so that the path is included in your current session:
source ~/.zshrc
4) Now everytime you login, the paths should be available in your environment and you won't need to create symlinks.
I just followed the installation guide for golang (ubuntu 16).
I extracted the archive at /etc/usr
I added env variable in /home/user/.profile
I just tested a basic go build on the hello world code.
I get the following error:
The program 'go' is currently not installed. You can install it by typing: sudo apt install golang-go
Why does it ask me to install it (again?)?
open the go documentation download
https://go.dev/dl/
choice your os and go version
download then extract the file
extract the file
open the file and open the terminal
6.Add /usr/local/go/bin to the PATH environment variable.
export PATH=$PATH:/usr/local/go/bin
then check the go version
go version
The location of the binary go is not in your path. Ubuntu does not find it and suggests to install it. Add this line to your file /etc/profile, or better $HOME/.profile:
export PATH=$PATH:/usr/local/go/bin
This is documented in the docs: https://golang.org/doc/install#install
If you want to try this solution before editing any files, you can just execute the above command and try to execute the go command in the shell.
There are paths which needs to be set correctly for you go installation to work
GOROOT points to directory where go is installed
export GOROOT=/usr/lib/go
GOPATH points to you workspace directory
export GOPATH=$HOME/go
These paths need to be added in global path variable.
export PATH=$PATH:$GOROOT/bin
You need to put the go executable in your system path. which you can do by
export PATH=$PATH:/etc/usr/go/bin
You can put the same in /home/user/.profile
just use asdf for installation. You can have several version also :D
Docs: https://asdf-vm.com/#/core-manage-asdf
downlaod the installer form enter link description here, choose intaller for linux that suit your device and then you go to your CLI and use wget or curl :
$ wget https://storage.googleapis.com/golang/go1...
and then extract the file to /usr/local :
$ tar -C /usr/local -xzf go1...
add path binary Go to PATH environment variable :
$ echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc
$ source ~/.bashrc
and then use go version to check if the Go already installed
If You are using linux then open your terminal and run this command.
sudo apt install golang-go
This command will Install Go lang. in your system. ThankYou
Steps for Go installation:
sudo apt-get update && sudo apt-get -y upgrade
wget https://dl.google.com/go/go1.17.5.linux-amd64.tar.gz
sudo tar -xvf go1.17.5.linux-amd64.tar.gz
sudo mv go /usr/local/
export GOROOT=/usr/local/go
Add in .bashrc
vi .bashrc
export GOPATH="/root/go"
export GOROOT=/usr/local/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
Download latest version from https://golang.org/doc/install
tar -xzf go1.15.7.linux-amd64.tar.gz
move to /usr/lib/ to folder with version number
sudo mv go /usr/lib/go-1.15
create symkink link on /usr/bin/
ln -s /usr/lib/go-1.15/bin/go /usr/bin/go
I've downloaded Cygwin here( setup-x86_64.exe). I have chosen to install from local directory.
Root directory: C:\cygwin64 . Local package directory: C:\Users\hp\Downloads. And there's no packages to install. How do I fix this? mintty.exe does not exist on my bin folder.
When you choose “Install from Local Directory”, Cygwin will try to pull packages
from your cache. In my case, my cache is:
C:\ProgramData
My mirror is:
http://cygwin.mirror.constant.com/
and my packages can be found:
C:\ProgramData\http%3a%2f%2fcygwin.mirror.constant.com%2f\x86_64\release
C:\ProgramData\http%3a%2f%2fcygwin.mirror.constant.com%2f\noarch\release
Unless you have stuff there, you will be unable to install anything. Better
option is to choose “Install from Internet”. This will download
packages if needed.
I am trying to install go-sql-driver on Windows Vista but I am having problems with GOPATH.
I installed git as suggested and added GOPATH as a new user environment in Windows with path C:/users/A/desktop/go.
I ran go get github.com/go-sql-driver/mysql in the command line but it gives me this error:
C:\>go get github.com/go-sql-driver/mysql
go: missing Git command. See http://golang.org/s/gogetcmd
package github.com/go-sql-driver/mysql: exec: "git": executable file not found in %PATH%
When I go look at http://golang.org/s/gogetcmd it merely says download git. But it is already downloaded in my machine.
I also went ahead and created a new environement variable for PATH and set its path to the directory where git was installed but that did not help either.
What am I doing wrong?
Download the Windows version of Git from http://git-scm.com/downloads.
Run the downloaded executable file, currently Git-1.8.3-preview20130601.exe, which will start a Git Setup wizard to install Git.
Check Git Setup Options
Run Git from the Windows Command Prompt
Checkout as-is, commit Unix-style line endings
Check the installation by running:
C:\>git --version
git version 1.8.3.msysgit.0
Make sure Git is in the %PATH% environment variable and ensure Git is installed. If you cannot run git --version in the command prompt, then the Git binary directory isn't listed in your %PATH%. Fix this by adding Git to the path, close the command prompt, and run git --version in a new command prompt. If you're still having issues, then you might be having other problems.
Install the GIT BASH desktop app in your Windows PC. The download link is here. Once installed, open the shell and type:
go get -u github.com/go-sql-driver/mysql
This will install driver for Golang's MySQL database package