Patrick-Dussault

Compiling NSS 3.20.2 Libraries on RedHat

Blog Post created by Patrick-Dussault Employee on Oct 11, 2016

Here are the fast tracks to compile the NSS libraries on your Linux box :

 

To install and compile NSS Library 32bit on RedHat 6 64bit.

 

1 - Download nss-3.20.2-with-nspr-4.10.10.tar.gz

 

    from https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_20_2_RTM/src/

 

2 - Insure that sqlite 32bit libraries are available on the system

 

    # yum install sqlite-devel.i686

 

3 - Decompress and unarchive the package and get in the repository :

 

    # tar zxvf nss-3.20.2-with-nspr-4.10.10.tar.gz
    # cd nss-3.20.2

 

4 - Compile the NSS Libraries :

 

    # export CFLAGS=-m32 && gmake BUILD_OPT=1 \
    NSPR_INCLUDE_DIR=/usr/include USE_SYSTEM_ZLIB=1 ZLIB_LIBS=-lz \
    NSS_USE_SYSTEM_SQLITE=1 -j1 nss_build_all

 

5 - You'll find then the binaries libraries in :

 

    nss-3.20.2/dist/Linux2.6_x86_glibc_PTH_OPT.OBJ/

Outcomes