1
我試圖在macOS Sierra上安裝Odoo v9。我把它安裝在virtualenv下,但是當我運行它(odoo.py)時,我得到了一個Could not execute command lessc。我發現這一點:權限拒絕在macOS上安裝sudo brew節點for odoo 9 Sierra
https://dedyyuristiawan.blogspot.com/2016/07/installation-odoo-on-mac-os-x-error.html
但是當我嘗試運行sudo的釀造......我得到這個錯誤:
Error : Running Homebrew as root is extremely dangerous and no longer supported.
我跑它沒有sudo,但我得到:
Error: Permission denied - usr/local/lib/node_modules/npm/.github/issue_template.md
當我運行釀造醫生時,我得到:
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/Users/mars/odoo-env/bin/python-config
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
node
於是我就這樣:
(odoo-env) Marcios-MacBook-Pro:odoo mars$ brew cleanup
(odoo-env) Marcios-MacBook-Pro:odoo mars$ brew link node
Linking /usr/local/Cellar/node/7.2.0...
Error: Could not symlink bin/node
Target /usr/local/bin/node
already exists. You may want to remove it:
rm '/usr/local/bin/node'
To force the link and overwrite all conflicting files:
brew link --overwrite node
To list all files that would be deleted:
brew link --overwrite --dry-run node
(odoo-env) Marcios-MacBook-Pro:odoo mars$ brew cleanup
(odoo-env) Marcios-MacBook-Pro:odoo mars$ brew link node
Linking /usr/local/Cellar/node/7.2.0...
Error: Could not symlink bin/node
Target /usr/local/bin/node
already exists. You may want to remove it:
rm '/usr/local/bin/node'
To force the link and overwrite all conflicting files:
brew link --overwrite node
To list all files that would be deleted:
brew link --overwrite --dry-run node
任何人都知道一個解決方法嗎?
嘗試執行釀造醫生 –
好吧,我更新了帖子與BREW醫生 – marciokoko
你不能,或者你可以,但不建議,將其安裝到結果/ usr中。你可以覆蓋它。 Macports安裝到/ opt,所以嘗試改爲這個目的地。 – kometen