寻求可运行于SUN Solaris 5.10的HAProxy 1.5+版本软件
Hey there! Let's figure out how to get HAProxy 1.5+ up and running on Solaris 5.10 (Solaris 10) for your reverse proxy needs. Here are your best options:
Pre-built community packages
Several community-maintained package repositories for Solaris still host pre-compiled HAProxy 1.5+ builds. Use package management tools likepkgutilto search forhaproxypackages—make sure to filter for versions 1.5 or higher, and confirm the package supports your system's architecture (SPARC or x86). These packages are usually pre-configured to work smoothly with Solaris 10's environment.Compile from source code
If pre-built packages aren't an option, compiling from source is a solid fallback. Here's a step-by-step approach tailored to Solaris 10:- First, install build dependencies: You'll need
gcc,make,openssl-dev, andpcre-dev. You can grab these from the same community repos mentioned above. - Download a stable HAProxy 1.5+ source release (stick to the later versions in the 1.5 branch, like 1.5.24, for critical bug fixes).
- Extract the source tarball and run the configure command with Solaris-specific flags:
Adjust the flags if you don't need certain features (e.g., remove./configure TARGET=solaris USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1USE_OPENSSL=1if you don't need SSL support). - Compile and install the binary:
make make install
Note: Solaris 10's older toolchain might throw minor warnings—check HAProxy's official build notes for Solaris-specific tweaks if you run into errors.
- First, install build dependencies: You'll need
Third-party shared binaries
Some Solaris users have shared pre-compiled HAProxy 1.5+ binaries on community forums or platforms. When sourcing these, always verify the binary matches your architecture and comes from a trusted source to avoid security issues.
A quick heads-up: HAProxy 1.5 is a legacy branch now (first released in 2014), so if your use case allows, prioritize the latest stable version in the 1.5 line to get all available bug fixes and security patches.
内容的提问来源于stack exchange,提问作者DungLe

