我是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等标签。之后,我意识到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
“openssl”的结果是:
/usr/local/opt/openssl/bin/openssl
链接openssl不再有效,看起来我的问题与OpenSSL包本身没有关系,但有些东西我不知道。
使用sudo ./install.sh给出了不同的输出,但是因为Plone文档[link]说“结果安装是自包含的,不触及系统文件,并且可以安全使用(没有root /需要sudoing)“,以为我不应该强迫它。看起来sudo给我root安装,输出如下:
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.
感谢您的帮助。
答案 0 :(得分:1)