ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

ERPNext bench command not found


#1

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:inrequire’
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require’: cannot load such file – bundler (LoadError)

Please help me with this error.


#2

what is the command you executed?


#3

I used this documentation.


I properly executed these two lines
-git clone https://github.com/frappe/bench bench-repo
-pip install --user -e bench-repo
Then I tried to execute this line i got an error.
- bench init frappe-bench && cd frappe-bench


#4

Command ‘bench’ not found, but can be installed with:

sudo apt install ruby-active-model-serializers


#5

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 bench-repo
sudo pip install -e bench-repo
i think this would be the solution…


#6

Thanks.
I found another solution which solved the problem which was adding one line in bashrc file.
Thanks for the help though.


#7

Can you explain me what have done let me try too…


#8

Just added this line in bashrc file
PATH=$PATH:~/.local/bin/
Then restarted shell using
exec bash


#9

k thanks.


#10

can you share the path where the bashrc file is located?


#11

the bashrc is in your home subdir. In theory, this should allow you to edit it…

nano ~/.bashrc