Free総合ERPパッケージ odoo13 CentOS8 インストール 完了

こちらを参考に

https://www.rosehosting.com/blog/how-to-install-odoo-13-on-centos-8/

Step 1: Connect to Your Server

Before we begin, you need to connect to your server via SSH as the root user. To do this, use the following command:
SSHで接続

なんでもいいでしょうけど、TeraTermで接続します。

Step 2: Update the System

We will update the server with the command:

UPDATE 済なので省略

Step 3: Install Python packages and Odoo Dependencies

Firstly, we will install Python 3 by executing the following command:

dnf となってるけど

で実行

完了です

With the following command, we will install all the tools and dependencies we need to build the latest Odoo 13.

以下のツールも必要なのでインストール

Step 4: Create an Odoo User

With the following command, we will create a new system user and group that we need to run the Odoo service. The home directory we will define in the /opt/odoo directory.

Odooユーザーを作成します

 

完了

Step 5: Install and Configure PostgreSQL

Install PostgreSQL by executing:

PostgreSQLのインストール

 

Then initialize the database:
ポスグレの初期化を行います

あれ?エラーです
–initdb にして再実行

エラー?

エラーログ

postgresユーザーがとか言ってるけど

いてます

LANGがうんぬんと

ここから ごちゃごちゃ

結局

でとりあえず initDB完了

自動起動の設定

Now, we’re going to create a new PostgreSQL user with the same name as the Odoo user system we created earlier in this tutorial.

odoo のポスグレユーザーを作成

Step 6: Install Wkhtmltopdf

Odoo requires the wkhtmltopdf package, which is an open-source tool that converts the HTML format to PDF so that Odoo can print PDF reports. We will install version 0.12.5, which is the latest version at the time this tutorial was written. The wkhtmltopdf package is not available in the official CentOS 8 repositories, so we will download and install it with the following commands:

html to pdf のインストール
wgetします

インストールします

最初にlocaleセットで失敗?
気にしないで先に行きます なんか後ででるかも(ーー:)

Step 7: Install and Configure Odoo 13

In this step, we will clone the branch of Odoo 13.0 to the server and use a virtualenv that will create an isolated Python environment for the Odoo 13 instance. But first, we will switch to the Odoo user which we created in the previous steps.

やっとodooインストール

 

なんか、ログイン失敗してるぞ!とかいってるけで su は出来てるみたいなので

git clone

With the command below we will create a new virtual environment that we will use for the new Odoo 13 instance.
仮想環境の作成

Once the virtual environment is created, we can activate it with this next command:
アクティブ化

We are now inside the virtual environment, where we can begin with the installation of the required Python modules for the Odoo installation:

 

When the installation of the Python modules is complete, we can deactivate the virtual environment and return to the root user by using these commands:

root にもどる

 

The following few commands are optional and can be used if you want to use custom modules for the Odoo instance. The best practice is to install custom Odoo modules in a separated directory. Therefore we will create a new directory for the custom modules and change its ownership to the ‘odoo’ user.

以下はオプションですがと。
カスタムモジュール用のディレクトリ作成

The next step is to create a configuration file for the new Odoo instance.
インスタンスを作成

ん?
nano はエディタらしいので

 

 

Step 8: Create a systemd Unit File

Now that our Odoo installation is complete, we will create a service unit file so that we can run Odoo as a service. This allows us to run Odoo in the background as a service as well as manage it, just like most other processes on the server.

Create a new odoo13.service file:

 

Once the file is saved and closed, we will reload the daemon so it can acknowledge the newly created unit in systemd.
リロード

 

Finally, we can use the following commands to start and enable on boot our new Odoo instance:

odooサービスの起動と自動起動の設定

やっと終わり
We can run the status command so that we can check if the new Odoo instance is active and running:
いよいよ、実行確認。ドキドキ(@@!

ガーーーーーーン!!!
failedです(ーー;)
どーすんのこれ?

とりあえず CentOSを再起動してみると
messages ログ

(@@
/opt/odoo/odoo13/odoo-bin
がないと なんですと!!!

pip3 install -r odoo13/requirements.txt
が失敗してましたね

その前の git がうまくいってないっす。
そっからやり直し
/opt/odoo
の作成から

んでやりなおし

githubのHEADがversion14になってるで
odoo13を手動でダウンロードして配置して以下を実行

んで ステータス確認
やっぱ失敗でございます(ーー;

PyPDF2がないと

python pip でインスコ

で odoo start エラー
今度は No module named werkzeug・・・
これって あかんやつや(ーー

これ ロードできてない奴は軒並みはいってないってことか?
pip3 install -r odoo13/requirements.txt
のログから入ってないのを拾って
実行

できました!!
てか active (running)になっただけだけど
画像が出ない(ーー
install libpq-dev postgresql-libs
のインストール
とか試しながら
結局
pip3 install -r odoo13/requirements.txt
がうまくいかない
pip install wheel して
gcc wheel でメモリ不足 DBとめたりして 最後までいったぽいけど
やっぱり画像が出ない(T。T)
いったん終了

解決しました
なぜだかわからないけど

psycopg2 2.7.7
のpip インスコのときエラーで入らなかったので

してたのを

削除したら、odoo13が起動できなかったので
再度

したら icon表示できました

コメントを残す