簡體   English   中英

無法在 MacOS High Sierra (10.13.3) 上安裝 Plone 5.0.8

[英]Not able to install Plone 5.0.8 on MacOS High Sierra (10.13.3)

我是 Plone 的新用戶(或試圖成為),以建立自己的網站。

我正在嘗試使用操作系統隨附的 Python 2.7 在 MacOS 10.13.3 上安裝 Plone 5.0.8。 使用 Plone-5.0.8-UnifiedInstaller-r1。 已經有了 XCode。 更新並下載了適用於 Xcode 9.2 MacOS 10.13 的命令行工具。

從安裝程序文件夾在終端中嘗試“./install.sh”並得到:

Continue with the command line:

install.sh standalone \
--target="/Users/felipelukavei/Plone"  

1) Yes
2) No
#? 1

./preflight: line 1707: config.log: Permission denied
./preflight: line 1717: config.log: Permission denied

Unable to run preflight check. Basic build tools are missing.
You may get more information about what went wrong by running
sh ./preflight
Aborting installation.

然后我會運行“sudo sh ./preflight”並得到類似於以下內容的內容,但現在我已經使用自制軟件安裝了一些要求。

checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for bunzip2... yes
checking for tar... yes
checking for gunzip... yes
checking for make... yes
checking for patch... yes
checking for xml2-config... /usr/bin/xml2-config
checking for xslt-config... /usr/bin/xslt-config
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking for main in -lreadline... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking for gzread in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for jpeg_read_header in -ljpeg... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for SSL_accept in -lssl... yes
checking ssl.h usability... no
checking ssl.h presence... no
checking for ssl.h... no
checking for openssl/ssl.h... (cached) yes
preflight: creating ./config.status
config.status: creating buildenv.sh

我已經安裝了 OpenSSL,並制作了像 ssl、headers、mac os、Plone、OpenSSL 等標簽在 Google 上的第 5 頁上列出的所有內容。 在那之后,我意識到 OpenSSL 安裝對結果沒有影響,因為即使卸載了 OpenSSL 檢查也可以(看起來 High Sierra 已經有了它),但是 ssl.h 我從來沒有得到過。

我仍然在我的終端返回命令:

ln -s ../opt/openssl/include/openssl
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
env LDFLAGS="-L/usr/local/opt/openssl/lib" CFLAGS="-I/usr/local/opt/openssl/include"

"find /usr -iname "ssl.h*"" 的結果是:

find: /usr/sbin/authserver: Permission denied
/usr/local/include/openssl/ssl.h
/usr/local/Cellar/openssl/1.0.2n/include/openssl/ssl.h
/usr/local/share/doc/openssl/html/man7/ssl.html

“which openssl”的結果是:

/usr/local/opt/openssl/bin/openssl

鏈接 openssl 不再有效,看起來我的問題與 OpenSSL 包本身無關,但我不知道。

使用 sudo ./install.sh 給了我不同的輸出,但由於 Plone 文檔[link]說“生成的安裝是獨立的,不涉及系統文件,並且可以安全使用(不需要 root/sudoing)” ,我想我不應該強迫它。 看起來 sudo get me root install 並且輸出如下:

Testing /usr/bin/python2.7 for Zope/Plone requirements....
/usr/bin/python2.7 looks OK. We will use it.


Root install method chosen. Will install for use by users:
  ZEO & Client Daemons:      plone_daemon
  Code Resources & buildout: plone_buildout


Detailed installation log being written to /Users/felipelukavei/Downloads/Plone-5.0.8-UnifiedInstaller-r1/install.log
Installing Plone 5.0.8 at /Applications/Plone

We do not know how to add users and groups in this environment. This is no problem if the required users and group already exist.
id: plone_daemon: no such user
id for plone_daemon returned
id: plone_daemon: no such user
Expected to find uid for plone_daemon and gid for plone_group but did not.
Please use your system tools to create/edit required users and group, then try again.

謝謝你的幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM