Friday, October 2, 2015

Install Odoo 9.0 mac (same as Odoo 8.0)

brew update
brew install python
brew install postgresql
/usr/local/Cellar/postgresql/9.4.4: 3014 files, 40M
# ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
# launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
brew install freetype jpeg libpng libtiff webp xz
pip install virtualenv
cd ~/Sites
virtualenv odoo-env
. odoo-env/bin/activate
################################################################################
if opened the new terminal has to activate the env
. ~Sites/odoo-env/bin/activate
or . odoo-env/bin/activate    depend on where u r
###################################################
which python
python-2.7.10_2
/usr/local/Cellar/python/2.7.10_2

git clone --depth 1 --branch 9.0 https://github.com/odoo/odoo.git odoo

cd Sites/odoo
pip install -r requirements.txt
pip install flanker
pip install ofxparser


cp debian openerp-server.conf ../openerp-server.conf
[options]
; This is the password that allows database operations:
dmin_passwd = admin
db_host = localhost
db_port = 5432
db_user = jing
db_password = jingforeveryoung
addons_path = /Users/Sites/odoo/addons
afterwards can change the pwd for the os, have the postgress still use the old pwd
new pwd also can connect to postgres
not sure about after sys restart

python openerp-server -c openerp-server.conf



https://www.odoo.com/forum/help-1/question/how-can-i-install-odoo-9-88323
ps aux |grep postgres


##########################could no execute command "lessc"
brew install node
/usr/local/Cellar/node/

npm install -g less

/usr/local/bin/lessc -> /usr/local/lib/node_modules/less/bin/lessc
less@2.5.3 /usr/local/lib/node_modules/less

npm install -g less-plugin-clean-css

less-plugin-clean-css@1.5.1 /usr/local/lib/node_modules/less-plugin-clean-css

to update node:
brew update
brew upgrade node
 to uninstall
brew uninstall node

after installing, need to wipe out the db, re create to have less take effect
( after the wizard, would not show manage database for other browsers on the login page)
##################### python related libs #############################
sudo pip install sorl-thumbnail 
aptitude cache |grep
easy_install memcache



#########################do not do this, installed a lot extensions libs too ##############
with the graphical install
/Library/PostgreSQL/9.4
/Library/PostgreSQL/9.4/data
superuser: postgres jing
graphical uninstall
sudo /Library/PostgreSQL/9.4/uninstall-postgresql.app/Contents/MacOS/installbuilder.sh

The data directory (/Library/PostgreSQL/9.4/data) and service user account (postgres) have not been removed.
sudo rm -rf /Library/PostgreSQL
sudo rm /etc/postgres-reg.ini
  1. Remove the PostgreSQL userSystem Preferences -> Users & Groups
    Unlock the settings panel by clicking on the padlock and enter your password
    Select the PostgreSQL user and click on the minus button.
    sudo /Library/pgAgent/uninstall-pgagent.app/Contents/MacOS/installbuilder.sh
the pageant schema and user account not removed

http://www.moncefbelyamani.com/how-to-install-postgresql-on-a-mac-with-homebrew-and-lunchy/
http://www.postgresql.org/download/macosx/
pgBounce listening port 6432

1 comment: