I am trying to follow the tutorial to install and test a ERPNext on a local debian ver8 box. The debian box was installed fresh from console just for this test. The only thing installed are the required programs as listed in the instructions found here:
psutil/_psutil_linux.c:12:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command âi586-linux-gnu-gccâ failed with exit status 1
From this point, the bench program seems to be broken or not installed at all. I attempted the next step of bench init and it returns bench: command not found
Is there possibly something I needed to install before starting bench install that I was unaware of?
Is there some patch that needs to be in place for debian 8 (jessie)?
I checked for cron and it seems to be installed and up to date.
I also have already taken care of the MairaDB public key.
@netchampfaris - I donât really understand the purpose of installing the python3-dev files when I was using 2.7 for everything else.
I did it anyway and then restarted the server (just for good practice) and the results are exactly the same. Same fatal error, same command failed with the same exit status.
Are there other prerequisites that I might have missed?
Is there a comprehensive list of prerequisites for installing this? (I have not found one yet)
Thank you, but it still will not complete the install of bench
I also went back to read the âreadme.meâ file again and noticed that it only talks about installing bench on Debian 7. Is there a problem with getting bench to run on Debian 8? Version 8 has been around for over a year now. Has anyone else been able to get bench to install on Debian 8 from a console?
It really shouldnât be this hard but there is not much information that I can find on getting bench installed.
Thanks to all that tried to help. I did eventually get it everything installed, but not manually.
Ultimately, there is just not enough documentation to do a manual install of everything needed to get ERPNext running on a bare Debian console server. Unless you install a full blown system complete with GUI and all the options, you will have a tough time trying to manually install the package.
However, the âEasy Installâ script written in python seems to work. Although the README.md file doesnât make mention of the easy way until near the end of the file. And the author makes the manual process seem easy with just a few prerequisites to install first. Trust me, it doesnât work. So here is what I did to get a local server box for testing.
I stripped the Debian 8 box and did a complete re-install of the OS using only the first install CD. I deselected the GUI option and selected only the standard utilities (which i believe is the last item in the selection list) along with SSH. Everything else was deselected. That gave me a very bare bones Debian 8 server box.
Then I did the following to get everything installed.
I installed sudo by using the âsuâ command to get root access and the typed in âapt-get install sudoâ (evidently Debian 8 does not include this as a standard package)
I added my user to the sudo group with âadduser myusername sudoâ (replace myusername with yours)
Then I had to add my user to the sudoers file with ânano /etc/sudoersâ Once I had the file open in the nano editor I just added âmyusername ALL=(ALL:ALL) ALLâ (without the quotes) to the line immediately following â%sudo ALL=(ALL:ALL) ALLâ and I saved the file.
Next I used the âexitâ command to get out of root access and back to my user prompt so I could use sudo for everything else
Now I installed python with âsudo apt-get install pythonâ
Once python was installed I was able to use the âEasy Installâ script to get everything else installed properly. It is a 2 step process.
Step two, I ran the install script to generate a production type install with the following command
âsudo python install.py --productionâ
Then just sit back and watch the install script do its work. Just watching everything go by on the console is enough to tell you that there is NOT enough documentation for anyone to do this manually. In my case it took almost 20 minutes on a fairly fast machine to get to the end of the script. During the process it prompts the user for passwords for root and admin users for the database, so you canât just start it and walk away. You have to be paying attention.
Anyway, this is how I got bench (and everything else) to install properly on a console only Debian 8 box. I believe there will always have to be an install script to do the job, because there is just no way to get all the dependencies worked out. Some of the required packages do not exist in the Debian repository and have to be pulled from other places, so any manual install attempt is pretty much futile.
Hope this helps someone else trying to set up a test server locally.