﻿{"id":2336,"date":"2015-08-15T20:31:30","date_gmt":"2015-08-15T12:31:30","guid":{"rendered":"http:\/\/www.jointd.com\/?p=2336"},"modified":"2024-11-07T10:50:01","modified_gmt":"2024-11-07T02:50:01","slug":"%e7%bf%bb%e8%af%91%e5%8a%a0%e6%95%b4%e7%90%86%ef%bc%9aubuntu-server-14-04-odoo9-%e5%ae%89%e8%a3%85%e7%ae%80%e8%a6%81%e5%8f%8a-could-not-execute-command-lessc-%e8%a7%a3%e5%86%b3","status":"publish","type":"post","link":"https:\/\/www.jointd.com\/?p=2336","title":{"rendered":"\u7ffb\u8bd1\u52a0\u6574\u7406\uff1aubuntu server 14.04 Odoo9.0\u5b89\u88c5\u7b80\u8981\u53ca Could not execute command lessc \u89e3\u51b3"},"content":{"rendered":"<p>\u7ffb\u8bd1\u52a0\u6574\u7406\uff1aubuntu server 14.04 Odoo9.0\u5b89\u88c5\u7b80\u8981\u53ca Could not execute command lessc \u89e3\u51b3<\/p>\n<p>\u6ce8\u610f\uff1a9.0 \u76ee\u524d\u521a\u53d1\u5e03\u5f88\u591a\u6d41\u7a0b\u53ef\u80fd\u90fd\u8d70\u4e0d\u5b8c \uff0c\u4e0d\u592a\u9002\u5408\u65b0\u624b\u6298\u817e\uff0c\u5927\u5bb6 \u81ea\u7528\u7684\u8bdd\uff0c\u53ef\u4ee5\u7b49 2016\u5e74\u7b2c1\u5b63\u5ea6 \u7b49\u95ee\u9898\u4fee\u590d\u7684\u5dee\u4e0d\u591a\u518d\u8bf4<\/p>\n<p>\u7528 deb\u5b89\u88c5\u5305\u7684\u65b9\u5f0f\u76f8\u5bf9\u8f7b\u677e\u4e9b\uff0c\u76ee\u524d\u6211\u6d4b\u8bd5\u4e0b\u67659.0\u95ee\u9898\u8fd8\u662f\u6bd48.0\u591a\u592a\u591a\u3002<\/p>\n<p>\u603b\u7684\u6765\u8bf4\uff1a odoo9\u7684\u5b89\u88c5\u548c<a href=\"http:\/\/www.jointd.com\/?p=1397\">8.0\u5dee\u4e0d\u591a\uff0c\u53c2\u8003<\/a>\uff1a<a href=\"http:\/\/www.jointd.com\/?p=1397\">http:\/\/www.jointd.com\/?p=1397<\/a><\/p>\n<p>\u672c\u6587\u4e3b\u8981\u53c2\u8003<a href=\"http:\/\/odoo-documents.readthedocs.org\/en\/latest\/setup\/install.html#setup-install-source\">\u5b98\u65b9odoo8.0\u5b89\u88c5\u6587\u6863<\/a>\uff1a<a href=\"http:\/\/odoo-documents.readthedocs.org\/en\/latest\/setup\/install.html#setup-install-source\">http:\/\/odoo-documents.readthedocs.org\/en\/latest\/setup\/install.html#setup-install-source<\/a><\/p>\n<p>\u8fd9\u91cc \u628a \u5728 ubuntu 14.04 \u4e0b \u5b89\u88c5 odoo 9.0\u6d4b\u8bd5\u7248 \u00a0 \u65f6 \u8981\u6ce8\u610f\u7684 \u51e0\u70b9 \u5206\u4eab\u7ed9\u5927\u5bb6\uff1a<\/p>\n<p>\u7b2c\u4e00\u6b65\uff1a<\/p>\n<p>\u5b89\u88c5git<\/p>\n<p>sudo apt-get install git<\/p>\n<p>\u8fdb\u5165\u4e00\u4e2a\u60f3\u88c5odoo\u7684\u76ee\u5f55\uff0c\u6bd4\u5982 cd \/opt<\/p>\n<pre lang=\"php\">git clone https:\/\/github.com\/odoo\/odoo.git<\/pre>\n<p>\u548c\u5b98\u65b9odoo8\u5b89\u88c5\u6587\u6863\u4e2d\u4e0d\u540c\u7684\u662f\uff0cgit clone \u4e4b\u540e\uff0c\u4e0d\u8981\u542f\u52a8 odoo\uff0c\u5207\u6362\u5230master\u7248\u672c<\/p>\n<p>\u8fdb\u5165\u5230 git clone odoo\u7684\u9ed8\u8ba4\u76ee\u5f55 \u00a0cd \/opt\/odoo<\/p>\n<pre lang=\"php\">git checkout 9.0<\/pre>\n<p>\u5207\u6362\u5230 odoo9.0 \u7248\u672c\u4e5f\u5c31\u662f odoo9<\/p>\n<p>\u6216\u8005\u76f4\u63a5\u4e0b\u8f7d9.0\u7248\u672c\uff1a<\/p>\n<pre lang=\"php\">git clone https:\/\/github.com\/odoo\/odoo.git --depth\u00a01\u00a0--branch\u00a09.0\u00a0--single-branch<\/pre>\n<pre lang=\"php\"><em>-depth\u00a01\u81f3\u53ea\u4f1a\u68c0\u7d22\u6700\u65b0\u7248\u672c\uff0c\u6ca1\u6709\u6240\u6709\u7684\u5386\u53f2\u53d8\u52a8\uff0c\u4e0b\u8f7d\u901f\u5ea6\u4f1a\u5feb\u5f88\u591a<\/em><\/pre>\n<p>\u7b2c\u4e8c\u6b65\uff1a\u4f9d\u8d56\u5305<\/p>\n<p>\u5b98\u65b9\u7684 \u4f9d\u8d56\u5305\u662f \u7528 pip \u88c5\u7684 \u88c5\u4e0b pip:<\/p>\n<pre lang=\"php\">sudo apt-get install pip<\/pre>\n<p>&nbsp;<\/p>\n<p>\u5728odoo\u7684\u76ee\u5f55\u4e0b\uff1a\u8fd0\u884c \u4e0b\u9762\u7684\u547d\u4ee4\u6765\u5b89\u88c5 \u4f9d\u8d56\u5e93 \uff1a<\/p>\n<pre lang=\"php\">pip install -r requirements.txt<\/pre>\n<p>&nbsp;<\/p>\n<p><em>\uff08\u8fd9\u4e2a\u5012\u662f\u6bd4 \u6211\u4e4b\u524d\u7528\u7684\u65b9\u6cd5\u7b80\u5355\uff0c\u4ee5\u540e\u53ef\u4ee5\u8bd5\u8bd5\uff0c<\/em><\/p>\n<p><em>\u4e0d\u8fc7\u6211\u53d1\u73b0 \u73b0\u5728\u5b98\u65b9\u5e94\u8be5\u8fd8\u6ca1\u66f4\u65b0\u8fc7 \u8fd9\u4e2a requirements.txt \uff0c\u6240\u4ee5 \u4f9d\u8d56\u5e93\u8fd8\u662f \u4e0d\u8db3\u7684\uff0c \u8fd8\u662f\u8981 \u53c2\u8003 \u6211 \u90a3\u4e2a odoo 8.0\u7684\u5b89\u88c5\u6559\u7a0b\uff0c\u5bf9 \u4f9d\u8d56\u5e93\u8fdb\u884c\u5b89\u88c5\u3002\uff09<\/em><\/p>\n<p>&nbsp;<\/p>\n<pre class=\"php\">sudo apt-get install python-dateutil python-docutils python-feedparser python-gdata \\\r\npython-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid \\\r\npython-psycopg2 python-psutil python-pybabel python-pychart python-pydot python-pyparsing \\\r\npython-reportlab python-simplejson python-tz python-unittest2 python-vatnumber python-vobject \\\r\npython-webdav python-werkzeug python-xlwt python-yaml python-zsi python-pyPdf \\\r\npython-decorator python-passlib python-requests<\/pre>\n<p>\u53e6\u5916 8\u670813\u65e5 \u6211\u6d4b\u8bd5\u5b89\u88c5odoo 9.0\u53d1\u73b0 \u8fd8\u9700\u8981\u4e0b\u9762\u51e0\u4e2a\u5305\uff1a<\/p>\n<p>&nbsp;<\/p>\n<pre lang=\"php\">wget https:\/\/launchpad.net\/~pythoneers\/+archive\/ubuntu\/py35asdefault\/+build\/7558927\/+files\/python-ofxparse_0.14-1_all.deb\r\n\r\nsudo apt-get -f install python-bs4 python-bs4-doc\r\n\r\nsudo dpkg -i python-ofxparse_0.14-1_all.deb\r\n\r\nsudo apt-get install python-passlib<\/pre>\n<p>\u6700\u540e\u8fd8\u9700\u8981 \u5b89\u88c5lessc (\u5728ubuntu 14.04\u4e0b\u5b89\u88c5\u5982\u4e0b\uff09\uff1a<\/p>\n<pre lang=\"php\">sudo apt-get install node-less<\/pre>\n<pre lang=\"php\">sudo apt-get install -y npm\r\n\r\nsudo ln -s \/usr\/bin\/nodejs \/usr\/bin\/node\r\n\r\nsudo npm install -g less less-plugin-clean-css<\/pre>\n<p>\u8fd9\u6b65\u5b89\u88c5\u53ef\u80fd\u4f1a\u62a5\u4e2a\u5c0f\u9519\uff0c<br \/>\nnpm WARN engine hawk@3.1.0: wanted: {&#8220;node&#8221;:&#8221;&gt;=0.10.32&#8243;} (current: {&#8220;node&#8221;:&#8221;v0.10.25&#8243;,&#8221;npm&#8221;:&#8221;1.3.10&#8243;})<\/p>\n<p>&nbsp;<\/p>\n<p>\u5b89\u88c5\u4e2d\u6587\u5b57\u4f53\uff1a<\/p>\n<pre lang=\"php\">sudo apt-get install ttf-wqy-zenhei\r\nsudo apt-get install ttf-wqy-microhei<\/pre>\n<p>\u6253\u5370\u7684wkhtmltox:<\/p>\n<pre lang=\"php\">sudo apt-get install wkhtmltopdf<\/pre>\n<p>\u4e0b\u8f7d\uff1a\uff08\u4e0b\u8fb9\u7684\u547d\u4ee4\u7b2c\u4e00\u884c\u672b\u5c3e\u7684 \/ \u548c\u7b2c\u4e8c\u884c\u5f00\u5934\u7684 w \u4e4b\u95f4\u6ca1\u6709\u7a7a\u683c )<\/p>\n<p>64\u4f4d\u7248\u672c\uff1ahttp:\/\/yun.baidu.com\/share\/link?shareid=2342612474&amp;uk=1077163249<br \/>\n\u7136\u540e\u7528winscp \u7b49\u4e0a\u4f20 \u540e\u00a0 \u89e3\u538b\u7f29\u4e0b\u8f7d\u5230\u7684\u6587\u4ef6\uff1a<\/p>\n<pre lang=\"php\">tar -vxf wkhtmltox-linux-amd64_0.12.0-03c001d.tar.xz<\/pre>\n<p>\u5f97\u5230\u4e00\u4e2a\u76ee\u5f55wkhtmltox\uff0c\u628awkhtmltopdf\u590d\u5236\u5230\/usr\/bin\u76ee\u5f55\uff0c\u66f4\u6539\u6240\u6709\u8005\uff0c\u5e76\u589e\u52a0\u53ef\u6267\u884c\u5c5e\u6027<\/p>\n<pre lang=\"php\">sudo cp wkhtmltox\/bin\/wkhtmltopdf \/usr\/bin\/\r\nsudo chown root:root \/usr\/bin\/wkhtmltopdf\r\nsudo chmod +x \/usr\/bin\/wkhtmltopdf<\/pre>\n<p>\u7b2c\u4e09\u6b65\uff1a\u8fd0\u884codoo9<\/p>\n<pre lang=\"php\">sudo apt-get install -y postgresql-9.3 postgresql-client-9.3 postgresql-contrib-9.3 postgresql-server-dev-9.3<\/pre>\n<p>\u786e\u4fdd \u7cfb\u7edf \u5b89\u88c5\u8fc7 postgresql \u540e\u53c2\u8003\u5b98\u65b98.0\u5b89\u88c5\u6559\u7a0b<br \/>\n\u4ee5\u5f53\u524d\u7528\u6237\u7684\u7528\u6237\u540d \u521b\u5efa\u4e00\u4e2a postgresql \u7684\u7528\u6237\uff1a<\/p>\n<pre lang=\"php\">sudo su - postgres -c \"createuser -s $USER\"<\/pre>\n<p>\u8fdb\u5165 odoo9\u7684\u5b89\u88c5 \u76ee\u5f55 cd \/opt\/odoo \u8fd0\u884c<\/p>\n<pre lang=\"php\">.\/odoo.py<\/pre>\n<p>\u5c31\u53ef\u4ee5\u8fd0\u884c odoo\u4e86\u3002 \u5177\u4f53\u8fd8\u53ef\u4ee5 \u53c2\u8003 \u6587\u7ae0\u5934\u90e8 \u63d0\u5230\u7684\u5b98\u65b9odoo\u5b89\u88c5\u6587\u6863 odoo.py \u7684\u5404\u79cd\u53c2\u6570\u3002<br \/>\n\u5982\u679c\u9700\u8981\u914d\u7f6e \u670d\u52a1 \u53ca \u5f00\u673a\u542f\u52a8\uff0c\u76ee\u524d\u8fd8\u662f\u548codoo8.0\u4e00\u6837\u7684\uff08\u6ce8\u610f\u76ee\u5f55\u7684\u4e0d\u540c\uff09\u3002<\/p>\n<p>\u914d\u7f6e\u4e3a\u670d\u52a1\uff1a<a href=\"http:\/\/www.jointd.com\/?p=1397\">\u53c2\u8003Odoo8<\/a>\u7684\uff1a<a href=\"http:\/\/www.jointd.com\/?p=1397\">http:\/\/www.jointd.com\/?p=1397<\/a><\/p>\n<p>\u53e6\u5916\uff0codoo8.0 \u5207\u6362\u52309.0\u7684 \u8001\u7528\u6237 \u6ce8\u610f\uff1aodoo-server.conf \u6216\u8005 openerp-server.conf \u6587\u4ef6 \u8981\u4fee\u6539\u4e0b\uff0c\u5f88\u591a8.0\u81ea\u52a8\u751f\u6210\u7684\u53c2\u6570\u5148\u53bb\u6389\u6bd4\u8f83\u597d\u3002\uff08\u6211\u5728\u8fd9\u4e2a\u5751\u91cc\u9762\u4e5f\u5446\u4e86\u4f1a\u3002\u3002\uff09<\/p>\n<p>\u6587\u7ae0\u5206\u4eab\u7ed9\u5927\u5bb6\uff0c\u5e0c\u671b\u5927\u5bb6\u90fd\u80fd\u5c11\u8d70\u5f2f\u8def\uff0c\u5171\u540c\u5efa\u8bbe\u6211\u4eec\u7f8e\u597d\u7684\u4e16\u754c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7ffb\u8bd1\u52a0\u6574\u7406\uff1aubuntu server 14.04 Odoo9.0\u5b89\u88c5\u7b80\u8981\u53ca Could not execut [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[139],"tags":[233,169,234,210,209,335,235,236,237],"class_list":["post-2336","post","type-post","status-publish","format-standard","hentry","category-odoo-openerp","tag-lessc","tag-odoo","tag-odoo-master","tag-odoo9","tag-odoo9-0","tag-odoo8-0","tag-odoo8"],"views":5065,"_links":{"self":[{"href":"https:\/\/www.jointd.com\/index.php?rest_route=\/wp\/v2\/posts\/2336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jointd.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jointd.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jointd.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jointd.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2336"}],"version-history":[{"count":3,"href":"https:\/\/www.jointd.com\/index.php?rest_route=\/wp\/v2\/posts\/2336\/revisions"}],"predecessor-version":[{"id":4123,"href":"https:\/\/www.jointd.com\/index.php?rest_route=\/wp\/v2\/posts\/2336\/revisions\/4123"}],"wp:attachment":[{"href":"https:\/\/www.jointd.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jointd.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jointd.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}