| 142 | === Non-root Including Mozilla NSS and NSPR === |
| 143 | Download the NSS and NSPR [ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_9_2_RTM/src/nss-3.9.2.tar.gz source] and extract it. Then do: |
| 144 | {{{ |
| 145 | ~$ cd nss-3.9.2/mozilla/security/nss |
| 146 | nss-3.9.2/mozilla/security/nss$ make nss_build_all |
| 147 | nss-3.9.2/mozilla/security/nss$ make install |
| 148 | }}} |
| 149 | |
| 150 | The Mozilla build system defaults to using the OS-supplied cc even if it's not in the path. If you're compiling on Solaris (and possibly other Unixes), you'll need to force the build to use gcc using the following commands instead: |
| 151 | {{{ |
| 152 | nss-3.9.2/mozilla/security/nss$ NS_USE_GCC=1 make nss_build_all |
| 153 | nss-3.9.2/mozilla/security/nss$ NS_USE_GCC=1 make install |
| 154 | }}} |
| 155 | |
| 156 | On systems where make is not GNU make, use gmake. The above commands will build the libraries without optimizations and with debugging enabled. To build optimized libraries, use these commands instead: |
| 157 | {{{ |
| 158 | nss-3.9.2/mozilla/security/nss$ make BUILD_OPT=1 nss_build_all |
| 159 | nss-3.9.2/mozilla/security/nss$ make BUILD_OPT=1 install |
| 160 | }}} |
| 161 | |
| 162 | To install the libraries and necessary headers, do the commands in the following block, but note that they require GNU find and GNU cp. These GNU tools can be found on Sunfreeware.com in the findutils and coreutils packages, respectively. Remember to make sure either that the GNU utilities are in your path before the OS versions or that you explicitly give the full path to the GNU utilities for all of the commands below. |
| 163 | {{{ |
| 164 | nss-3.9.2/mozilla/security/nss$ mkdir -p $HOME/lib |
| 165 | nss-3.9.2/mozilla/security/nss$ mkdir -p $HOME/include/nspr |
| 166 | nss-3.9.2/mozilla/security/nss$ find ../../dist/*/lib -type l \ |
| 167 | > \( -name "*.so" -o -name "*.chk" \) \ |
| 168 | > -exec cp -L {} $HOME/lib \; |
| 169 | nss-3.9.2/mozilla/security/nss$ cp -Lr ../../dist/public/* $HOME/include |
| 170 | nss-3.9.2/mozilla/security/nss$ cp -Lr ../../dist/*/include/* $HOME/include/nspr |
| 171 | }}} |
| 172 | |
| 173 | Now, to compile Pidgin, do the following after downloading and extracting the source: |
| 174 | {{{ |
| 175 | ~/pidgin$ ./configure --prefix=$HOME --with-nss-includes=$HOME/include/nss \ |
| 176 | > --with-nspr-includes=$HOME/include/nspr --with-nss-libs=$HOME/lib \ |
| 177 | > --with-nspr-libs=$HOME/lib |
| 178 | ~/pidgin$ make |
| 179 | ~/pidgin$ make install |
| 180 | }}} |
| 181 | |
| 182 | After the above, you should be able to use Pidgin by running `$HOME/bin/pidgin`. In some cases it may be necessary to set `LD_LIBRARY_PATH=$HOME/lib` before running Pidgin. |
| 183 | |