Recent, I use MacBook, so I have to build development environment. The server-side programming is just going to continue using Vim in the console, the client is trying to develop using XCode. In fact, I think it's great when all goes well in Xcode, but I dont ’t know how can I install them.
Recently, Most popular web server is NGINX. I want to make some NGINX module, so I write down the instruction for other tries.
Upon receiving first download the source code using the curl NGINX
# curl -O http://nginx.org/download/nginx-1.10.1.tar.gz
First, I just did ./configure && make but that make an error. Error message is related with pure, let's download it and install.
For the later, I enabled many options. Let the system libraries installed first proceed with root privileges.
# sudo su -l# curl -O ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.tar.gz# tar xvzf ./pcre-8.38.tar.gz# cd ./pcre-8.38# ./configure --enable-Utf --enable-pcre16 --enable-pcre32 --enable-pcregrep-libz --enable-pcregrep-libbz2# make# make install
Now, go to the nginx source directories do you run ./configure ... and there is no progress openssl.
Let’s download and install the openssl.
# sudo su -l# curl -O https://www.openssl.org/source/openssl-1.0.2h.tar.gz# tar xvzf openssl-1.0.2h.tar.gz# cd openssl-1.0.2h# ./Configure Darwin64-x86_64-cc# make depend# make# make install
Now let's install NGINX go to the source directory and do ./configure still brings up a "OpenSSL library is not used". Do you use the option of the ./configure --with-openssl = DIR seems to work well.
# ./configure --with-openssl= /usr/local/ssl# make# sudo make install
Now run /usr/local/nginx/sbin/nginx and when you connect using a Web browser http://127.0.0.1 is well connected.
Build up the environment to compile the first day!
It will raise to the process of creating a module after the next time.