下载erlang23.3的包
tar -xzvf otp_src_23.3.tar.gz
cd otp_src_23.3
./configure --prefix=/usr/local/erlang --without-javac
make && sudo make install
(第二次重装完mac10.15.7,再安装xcode12.4,就可以了,一点报错都没有,)
使用 linux 安装erlang_mac上linux虚拟机中安装erlang-优快云博客 最后去验证一下是不是完成,没有的问题,用里面的方式安装 openssl(下面那个版本)
报错处理
初次安装报错,解决如下报错(openssl之前安装了,所以没有报出openssl的错误)
config.status: creating c_src/Makefile
./configure: line 4321: wx-config: command not found
./configure: line 4671: wx-config: command not found
configure: WARNING:
wxWidgets must be installed on your system.
Please check that wx-config is in path, the directory
where wxWidgets libraries are installed (returned by
'wx-config --libs' or 'wx-config --static --libs' command)
is in LD_LIBRARY_PATH or equivalent variable and
wxWidgets version is 2.8.4 or above.
*********************************************************************
********************** APPLICATIONS DISABLED **********************
*********************************************************************
jinterface : Java compiler disabled by user
odbc : ODBC library - header check failed
*********************************************************************
*********************************************************************
********************** APPLICATIONS INFORMATION *******************
*********************************************************************
wx : wxWidgets not found, wx will NOT be usable
*********************************************************************
*********************************************************************
********************** DOCUMENTATION INFORMATION ******************
*********************************************************************
documentation :
fop is missing.
Using fakefop to generate placeholder PDF files.
*********************************************************************
一、安装 wx-config (使用较新的 wxWidgets 3.x:推荐使用 wxWidgets 3.0 或更高版本,它们对 macOS Catalina 有更好的支持,注:这里我安装的是 3.0.5的 2.8.4的安装不成功)
wxWidgets 3.0.x
最后一个稳定版本是 3.0.5(官方维护到 2022 年)。
完全兼容 macOS 10.15,支持 32/64 位,使用较旧的 macOS API(Carbon/Cocoa 混合)。
适用于需要稳定性的旧项目
wxWidgets 3.1.x 或 3.2.x
3.1.7(较新的功能,但仍支持 10.15)。
3.2.x(最新稳定版,如 3.2.4),但需确认:
官方要求 macOS 10.13 (High Sierra) 或更高,因此 10.15.7 可以运行。
可能需要更新开发工具(Xcode 12+)
wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.0.5/wxWidgets-3.0.5.tar.bz2
tar -xzvf wxWidgets-3.0.5.tar.bz2
cd wxWidgets-3.0.5
./configure --enable-cxx11 --with-macosx-version-min=10.15
make && sudo make install
二、安装openssl (默认安装:/usr/local/openssl)
wget https://github.com/openssl/openssl/releases/download/OpenSSL_1_1_1w/openssl-1.1.1w.tar.gz
tar -xzvf openssl-1.1.1w.tar.gz
cd openssl-1.1.1w
./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl shared zlib
make && sudo make install
三、安装fop (安装fop-1.1-bin.tar.gz)
wget https://archive.apache.org/dist//xmlgraphics/fop/binaries/fop-1.1-bin.tar.gz
tar -xzvf fop-1.1-bin.tar.gz
sudo mv fop-1.1 /usr/local/fop
# 添加环境变量
echo 'export PATH="/usr/local/fop:$PATH"' >> ~/.zshrc
source ~/.zshrc
四、安装ODBC( 未处理完成, ./configure还会报错 不影响安装,后续看一下处理)
wget ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-2.3.11.tar.gz
tar -zxvf unixODBC-2.3.11.tar.gz
cd unixODBC-2.3.11
./configure --prefix=/usr/local/unixodbc
make && sudo make install
如果检测还是少odbc 在时加参数 --with-odbc=/usr/local/unixodbc