Installation odoo 11.0 development environment on Mac OS X 10.13
0. prepared to
assume homebrew already installed
need not install to install, see the following link
http://brew.sh/
1. Install PostgreSQL
$ BREW TAP homebrew / Services
$ BREW install PostgreSQL
View installed version
$ pg_ctl -V
as a service starts, stops will start instead STOP
BREW Services start PostgreSQL
do not do service to start
pg_ctl -D / usr / local / var / postgres start
I choose here to install the service
Access default database
psql postgres
create new users and database
createuser -P odoodev
createdb -Oodoodev -Eutf8 odoo11
access
psql -Uodoodev odoo11
\ q to exit the
psql command will not repeat them here.
I adminer (https://www.adminer.org/) to access
reinstall php (There are inexplicably problem can reload reloading is easiest)
PHP -v
BREW Uninstall php70
BREW Options php72
BREW install --with---with the httpd-php72 the homebrew-libressl --with-Thread-Safety-PostgreSQL --with
the sudo apachectl Start
(/usr/local/etc/httpd/httpd.conf)
above is a configuration apache file location.
unix_socket not right, modifications as follows
postgresql profile in /usr/local/var/postgres/postgresql.conf, modify the following two lines of
the listen_addresses = '*'
unix_socket_directories = '/ tmp, / var / pgsql_socket'
Services STOP PostgreSQL BREW
sudo mkdir pgsql_socket
sudo chmod 777 pqsql_socket
more Reference article:
http://blog.csdn.net/lissdy/article/details/54099580
https://yq.aliyun.com/articles/25638
HTTPS: // www.jianshu.com/p/fedda9824f6a
http://www.ruanyifeng.com/blog/2013/12/getting_started_with_postgresql.html
https://stackoverflow.com/questions/13868730/socket-file-var-pgsql-socket- s-pgsql-5432-missing- in-mountain-lion-os-x-ser
can also use this
http://postgresapp.com/
(download slower, give up)
2. install python3
$ Xcode the SELECT--install
$ the install to python3 BREW
3. installation nodejs and less
nodejs slightly mounting
the sudo less NPM the install -g
4. Download source git
git client installation slightly
git clone https://github.com/odoo/odoo.git
mounted reliance Python
$ cd odoo
$ pip3 install -r requirements.txt
5. Modify profile
run
./odoo-bin -s
generating the configuration file ~ / .odoorc
cp ~ / .odoorc odoo.conf
Modify the following two lines in the odoo.conf
logfile = /Users/albert/odoo/odoo.log
logrotate = True
6. Run
./odoo-bin -C ./odoo.conf
http://localhost:8069/
Fill in the name of the database administrator mailbox and password you can use from the start.
7. problem solving
ValueError: unknown locale: UTF-8
to edit ~ / .bash_profile added
two rows
Export. 8 the LC_ALL = the en_US.UTF-
Export. 8-the en_US.UTF the LANG =
Note the type of database to fill in already filled database account and password
odoo.conf
db_host = 127.0.0.1
db_port = 5432
db_user = admin
db_password = 123456
db_sslmode = prefer
db_template = template1
dbfilter = postgres
Configuration database