A
A
Alexander Avtomonov2014-06-02 14:38:13
PHP
Alexander Avtomonov, 2014-06-02 14:38:13

How to install from source under FreeBSD?

There is a problem installing nginx from source under FreeBSD.
1. Downloaded nginx 1.6 with wget from github.
2. Carried out the configuration:

./configure \
--prefix=/usr/local/etc/nginx \
--with-cc-opt='-I /usr/local/include' \
--with-ld-opt='-L /usr/local/lib' \
--conf-path=/usr/local/etc/nginx/nginx.conf \
--sbin-path=/usr/local/sbin/nginx \
--pid-path=/var/run/nginx.pid \
--error-log-path=/var/log/nginx.error.log \
--user=www \
--group=www \
--with-file-aio \
--with-ipv6 \
--http-client-body-temp-path=/var/tmp/nginx/client_body_temp \
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp \
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp \
--http-scgi-temp-path=/var/tmp/nginx/scgi_temp \
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp \
--http-log-path=/var/log/nginx-access.log \
--with-http_realip_module \
--with-http_stub_status_module \
--with-pcre \
--with-http_ssl_module \
--without-http_autoindex_module \
--without-http_uwsgi_module \
--without-http_scgi_module \
--add-module=/usr/home/admuser/ngx_devel_kit-master \
--add-module=/usr/home/admuser/ngx_http_set_hash-master \

3. make writes don't know how to make built. stop. gmake says *** No rule to make target `build', needed by `default'. stop.
In Makefile:
default: build
clean: rm -rf Makefile objs

Tell me what could be the problem.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xmoonlight, 2015-12-28
@burov0798

Show us what you can do and we'll fix it.

$re = "/token=([a-z0-9]+)/"; 
$str = "http://api.vk.com/blank.html#access_token=7ada2a9807c5e450ac7b0a144f6730dc49fc5d584054b1953c9ec9485a65a4ec74ee2264b70a4293b8888&expires_in=0&user_id=338880723"; 
     
preg_match($re, $str, $matches);
$token=$matches[1];

M
Muhammad, 2015-12-28
@muhammad_97

$url = "http://api.vk.com/blank.html#access_token=7ada2a9807c5e450ac7b0a144f6730dc49fc5d584054b1953c9ec9485a65a4ec74ee2264b70a4293b8888&expires_in=0&user_id=338880723";

$segments = explode('#', $url);
$hash = $segmetns[1];

foreach (explode('&', $hash) as $param) {
    list($key, $value) = explode('=', $param);
    $params[$key] = $value;
}

var_dump($params);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question