2

我是 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,并制作了 Google 前 5 页上列出的所有标签,例如 ssl、标头、mac os、Plone、OpenSSL。在那之后,我意识到 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 文档[链接]说“生成的安装是独立的,不接触系统文件,并且可以安全地使用(不需要 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.

感谢您的帮助。

4

1 回答 1

1

这个问题在 Plone 社区得到了回答:https ://community.plone.org/t/not-able-to-install-plone-5-0-8-on-macos-high-sierra-10-13-3/ 5972/29

谢谢!

于 2018-03-10T20:41:00.880 回答