Hello, i try to install ERPNext on Ubuntu 18.04.3 LTS.
No i get this error:
bench --version
Traceback (most recent call last):
2: from /usr/bin/bench:5:in `<main>'
1: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- bundler (LoadError)
undine@ubu:~$ bench --version
Traceback (most recent call last):
2: from /usr/bin/bench:5:in `<main>'
1: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- bundler (LoadError)
How can i solved the problem?
jannis
I will try this:
Use these below commands :
sudo useradd -m -s /bin/bash erpnextuser
sudo passwd erpnextuser
sudo usermod -aG sudo erpnextuser
sudo mkdir -p /opt/erpnext
sudo chown -R erpnextuser /opt/erpnext/
su - erpnextuser
cd /opt/erpnext
git clone https://github.com/frappe/bench
sudo pip install -e bench-repo
Now i get this error:
sudo pip install -e bench-repo
The directory '/home/erpnextuser/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/erpnextuser/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
bench-repo should either be a path to a local project or a VCS url beginning with svn+, git+, hg+, or bzr+
Solution, reboot the system, than:
bench --version
4.1.0