odoo16 开发win11 子系统部署wsl2 ubuntu22.04 环境安装配置

@[TOC]安装环境
一如既往,不明所以的开始,不废话

  • Python 3.9.17
  • PostgreSQL (默认14.8)
  • Python 3.9.17安装

sudo apt-get update

依赖

sudo apt install gcc
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libbz2-dev liblzma-dev sqlite3 libsqlite3-dev tk-dev uuid-dev libgdbm-compat-dev -y
cd /usr/src && sudo wget https://www.python.org/ftp/python/3.9.17/Python-3.9.17.tgz

编译安装

sudo tar -xvf Python-3.9.tgz && cd Python-3.9  &&  sudo ./configure --enable-optimizations --with-lto && sudo make altinstall

软链

ln -s /usr/local/bin/python3.9.13 /usr/bin/python3.9.13
  • PostgreSQL (默认14.8)

sudo apt install postgresql postgresql-contrib -y

自行下载odoo16

https://download.odoocdn.com/download/16/src?payload=MTY4NjM3MjE3MC4xNi5zcmMubnJfQVlVbHlPb0ZfVWNYXzRDWHVXS1ZqdEU0RmZ0TzRBTHhwbmpJV1AxST0%3D

存放在任意目录下(我的是这个)
/home/oo/odoo_16.0.latest.tar

cd /home/oo
sudo tar -zxvf odoo_16.0.latest.tar.gz
mv odoo-16.0.post20230609 odoo

配置odoo

cd /home/oo/odoo
cp ./setup/odoo odoo-bin

odoo pip 环境

pip install --upgrade pip
sudo apt-get install libldap2-dev libsasl2-dev libssl-dev

启动Pycharm 让其自行创建虚拟环境
打开工程目录

你可能感兴趣的:(linux,运维,服务器)