Install ACE through Centos compilation

Source: Internet
Author: User
Tags install openssl
Compile and install ACE in Centos. first, download the ACE package. Download link: http://download.dre.vandrebilt.edu/here, only ACEIs installed, and other packages are not involved. Tar-xvfACE-6.0.3.tar.gzcdACE_wrapperswww.2cto.com creates two files for different versions...
Centos compiling and installing ACE first: Download the ACE package. Download link: http://download.dre.vanderbilt.edu/ Only ACE is installed here, and other packages are not involved. Tar-xvf ACE-6.0.3.tar.gz cd ACE_wrappers www.2cto.com create two file links for different versions: cd. /ace ln-s config-linux.h config. h cd .. /include/makeinclude/ln-s platform_linux.GNU platform_macros.GNU creates the compilation Directory: cd .. /.. /.. /// enter the mkdir build in ACE_wrappers .. /configure -- prefix =/opt/library/ace CXXFLAGS =-O3 -- disable-debug -- disable-ace-examples -- disable-ace-tests make note: in this process, some errors may not be found in the header file. you need to run the relevant commands to install them. the error I encountered was caused by openssl. The header file does not exist. all development kits that require libopenssl installation are required. Yum search openssl yum install openssl-devel.i686 make install // to switch to Super User test: # include using namespace std; int main (int argc, ACE_TCHAR * argv []) {ACE_DEBUG (LM_DEBUG, ACE_TEXT ("Hello World! "); Return 0;} www.2cto.com g ++-I/opt/library/ace/include-L/opt/library/ace/lib demo. cpp-installation-lrt-lpthread note: the path after-I and-L is your installation path. Run :. /. out www.2cto.com will prompt the following error :. /. out: error while loading shared libraries: libACE-6.0.3.so: cannot open shared object file: No such file or directory why? In. when running out, you need to link some dynamic libraries, but there is no ace library path in the current environment, so this problem occurs. Solution: export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH: /opt/library/ace/lib add the current ace library path to the environment variable LD_LIBRARY_PATH. However, this method is only valid on the current terminal. It is best to write data to a path file, such as. bashrc. bash. There are many instructions on the specific method. Run now. everything is OK! Author: GasLS
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.