Ok, Im now trying an install with the ubuntu commands from here:
or here:
The basic commands are:
git clone GitHub - openfoodfoundation/openfoodnetwork: Connect suppliers, distributors and consumers to trade local produce.
cd openfoodnetwork/
sudo apt-get install postgresql
sudo apt-get install postgresql-contrib
sudo apt-get install pgadmin3
sudo -u postgres psql postgres
postgres=# \password postgres
postgres=# \q
Now the next command fails:
sudo -u postgres createuser –superuser ofn_user
createuser: too many command-line arguments (first is “ofn_user”)
Try “createuser --help” for more information
So Im trying:
sudo -u postgres createuser
and it works:
Enter name of role to add: ofn_user
Shall the new role be a superuser? (y/n) y
Next we need to enter postgres again:
sudo -u postgres psql postgres
then
\password ofn_user
Set the password
then quit:
postgres=# \q
sudo -u postgres createdb ofn_db
then
bundle install
The program ‘bundle’ is currently not installed. You can install it by typing:
apt-get install ruby-bundler
this fails, so I try:
apt-get install ruby-bundler
This is installed but still fails:
bundle install
/usr/lib/ruby/vendor_ruby/bundler/rubygems_ext.rb:8:in require': no such file to load -- rubygems (LoadError)** ** from /usr/lib/ruby/vendor_ruby/bundler/rubygems_ext.rb:8** ** from /usr/lib/ruby/vendor_ruby/bundler.rb:11:in
require’
** from /usr/lib/ruby/vendor_ruby/bundler.rb:11**
** from /usr/bin/bundle:4:in `require’**
** from /usr/bin/bundle:4**
So this install falls over here now too. not sure where to go next.