📄 readme.solaris
字号:
Solaris Build Instructions==========================Preparing the Build Environment:--------------------------------libpion currently only supports the GCC (g++) compiler when building underSolaris. We plan to add support for the Sun Studio C++ compiler in the nearfuture, after support for it is added to the ASIO library.The easiest way to setup a build environment in Solaris is to download andinstall the following packages from http://www.sunfreeware.com/:gcc, zlib and openssl.Make sure that the "make" and "ar" utilities are in your PATH. Normally, these are installed in the /usr/ccs/bin directory, which forsome reason is not included in the default PATH. Also, make sure that/usr/local/bin is included in your PATH.Building Boost with ASIO:-------------------------Please see the README.boost file for instructions.Boost's build system is currently (as of 1.34.0) unable to detect the linkeryou are using, and therefore may pass incorrect arguments causing librariesto not be built correctly. This is especially a problem under Solaris ifyou are using the GCC distribution from SunFreeware.com because it usesthe linker bundled with Solaris while Boost assumes the GCC toolset alwaysuses the GCC linker. Luckily, the build system lets you tell it explicitlywhat linker you are using by modifying your "user-config.jam" file.If you are building Boost using the "configure" script, first run the"configure" command and then modify the "user-config.jam" file that itgenerates in Boost's root directory (change the existing "using gcc" line).If you are using Boost::Build (bjam), you need to instead modify the"user-config.jam" file in the "tools/build/v2" subdirectory (add the followingline within the "GCC configuration" section):using gcc : : g++ : <linker-type>sun ;Installing zlib & openssl:--------------------------ASIO requires zlib and openssl for compression and SSL/TLS encryptionsupport, respectively. On Solaris, we recommend that you download andinstall the packages available on SunFreeware.com. However, you mayinstead choose to download and install the latest versions from thefollowing sites:http://www.zlib.nethttp://www.openssl.orgLogging frameworks:-------------------Note that the use of a logging framework is entirely optional, so you mayskip this step if you like.If you wish to use one of the supported logging frameworks with libpion,you will need to download and install it from source, since none of themare currently available pre-built for Solaris. The current releases ofthe log4cpp and log4cplus libraries do not seem to build correctly underSolaris, so you will have to use the log4cxx library. You can downloadthe source tarball for log4cxx from:http://logging.apache.org/log4cxxPlease see the log4cxx documentation for more information on how to buildand install this library.Building and installing libpion:--------------------------------Now you should be able to build and install libpion:tar xvfz libpion-VERSION.tar.gzcd libpion-VERSION./configure --with-boost=/usr/local \ [--with-openssl=/usr/local/ssl] [--with-log4cxx=/usr/local]make ; sudo make installKnown problems:---------------If you're using the gcc compiler distributed at http://www.sunfreeware.com,you may encountered errors about not being able to find the libstdc++ sharedlibrary (and others). If this happens, try setting the LD_LIBRARY_PATHvariable to include /usr/local/lib/. You should also include the Boostlibraries and the logging library (if used) in this path:export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/ssl/lib
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -