Compile mozillaldapforc in Linux

Source: Internet
Author: User
In Linux, compile illaldapforc-Linux general technology-Linux technology and application information. The following is a detailed description. After countless hardships, I finally compiled the javasldap_sdk in windows and linux. I will share with you the compilation experience below, hoping to help you, and you are welcome to discuss it together.

Let's talk about linux first. Compiling in linux is much easier than in windows. I use linux Enterprise 5.

The required compilation tools are installed by default. (gcc 3.4 or later versions include CVS ). First download the source file mozldap-6.0.6 from the Web (other versions should be okay ). Decompress the package and enter the directory. During the compilation process, set CVSROOT and use CVS to obtain the files (nss, dbm, nsprub, svccore, and coreconf) to be compiled ). Of course, you can also manually download the source file from the Mozilla website without cvs URL: ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases I use 3.11.4 version. Put the downloaded file into a Mozilla directory, and mongoldap also has the same directory. Put all Mozilla items in nss into the Mozilla folder in mongoldap.

After downloading the source file, you can start compiling. Run the following commands in sequence:

Export CVSROOT =: pserver: anonymous@cvs-mirror.mozilla.org:/cvsroot

Cvs co-r NSPR_4_6_4_RTM mozilla/nsprpub

Cvs co-r NSS_3_11_4_RTM mozilla/security/coreconf mozilla/security/nss mozilla/security/dbm mozilla/dbm

Cvs co-r SVRCORE_4_0_3_RTM mozilla/security/svrcore [mozilla/security/coreconf)

To manually download the nss file, you do not need to run the preceding three commands to obtain the nss source file. Run

Cd mozilla/security/nss

Make nss_build_all

Cd mozilla/directory/c-sdk

./Configure -- with-nss [-- enable-64bit]

Make

If the environment configuration is correct, you can find mozilla/dist/lib/libldap60.so and other files. These are what you need.

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.