问:
jQuery slider - slide: function (event, ui) in for loop
I have a simple code with 2 (or more) jQuery sliders:

HTML:

```<code><label for="ST">ST:</label>
<input type="text" id="ST" value="10">
<div id="slider-ST"></div>

<label for="DX">DX:</label>
<input type="text" id="DX" value="10">
<div id="slider-DX"></div>
</code>```

and JS:

```<code>$function(){
$( "#slider-ST" ).slider({
  orientation: "horizontal",
  range: "min",
  value: 10,

  slide: function (event, ui) {sliderChange(ui,"#ST");}
});

$( "#slider-DX" ).slider({
  orientation: "horizontal",
  range: "min",
  value: 10,

  slide: function (event, ui) {sliderChange(ui,"#DX");}
});

function sliderChange(t, disp)
{
   $(disp).val(t.value);
};
}
</code>```

It works perfectly well.

Now, I want to make it nicer and I would like to call these functions in a for loop:

```<code>$function(){
var ID_Inp = ["#slider-ST", "#slider-DX"];
var ID_Sli = ["#ST", "#DX"];
var i;
for (i=0;i<ID_Inp.length;i++)
{
  $(ID_Inp[i]).slider({
  orientation: "horizontal",
  range: "min",
  min: 1,
  max: 18,
  value: 10,

  slide: function (event, ui) {sliderChange(ui,ID_Sli[i]);}
  });
};
function sliderChange(t, disp)
{
   $(disp).val(t.value);
};
}
</code>```

Simplified code also available at jsfiddle:

working

not working (using for loop)

And what happens is, that i is set to 2 after changing the slider's value and obviously function sliderChange doesn't work properly (ID_Sli[i] is undefined).

Any ideas?

答:
I'm not sure why you'd need to use a for loop in this situation, this could be simplified. Expanding on Govind's idea, if you encapsulate the Sliders & Inputs into individual Div's:

```<code><div id="bedsSection">
    <input type="text" id="amountbeds">
    <div id="slider-range-max-beds"></div>
</div>
</code>```

Following this, using the same event, you could then query the parent to find the relevant input. Update accordingly.

```<code>$( "#slider-range-max-beds, #slider-range-max-cars" ).slider({
      range: "max",
      value: 2,
      slide: function( event, ui ) {
                var input = $(this).parent().find("input");
                input.val( ui.value );

            //Could also be written as $(this).parent().find("input").val(ui.value);
      }
});
</code>```

Body:
I have a simple code with 2 (or more) jQuery sliders:

HTML:

ST:
<input type="text" id="ST" value="10">

DX:
<input type="text" id="DX" value="10">

and JS:

$function(){
$( "#slider-ST" ).slider({
  orientation: "horizontal",
  range: "min",
  value: 10,

  slide: function (event, ui) {sliderChange(ui,"#ST");}
});

$( "#slider-DX" ).slider({
  orientation: "horizontal",
  range: "min",
  value: 10,

  slide: function (event, ui) {sliderChange(ui,"#DX");}
});

function sliderChange(t, disp)
{
   $(disp).val(t.value);
};
}

It works perfectly well.

Now, I want to make it nicer and I would like to call these functions in a for loop:

$function(){
var ID_Inp = ["#slider-ST", "#slider-DX"];
var ID_Sli = ["#ST", "#DX"];
var i;
for (i=0;i<ID_Inp.length;i++)
{
  $(ID_Inp[i]).slider({
  orientation: "horizontal",
  range: "min",
  min: 1,
  max: 18,
  value: 10,

  slide: function (event, ui) {sliderChange(ui,ID_Sli[i]);}
  });
};
function sliderChange(t, disp)
{
   $(disp).val(t.value);
};
}

Simplified code also available at jsfiddle:

working

not working (using for loop)

And what happens is, that i is set to 2 after changing the slider's value and obviously function sliderChange doesn't work properly (ID_Sli[i] is undefined).

Any ideas?

Body:
I'm not sure why you'd need to use a for loop in this situation, this could be simplified. Expanding on Govind's idea, if you encapsulate the Sliders & Inputs into individual Div's:

<div id="bedsSection">
    <input type="text" id="amountbeds">
    <div id="slider-range-max-beds"></div>
</div>

Following this, using the same event, you could then query the parent to find the relevant input. Update accordingly.

$( "#slider-range-max-beds, #slider-range-max-cars" ).slider({
      range: "max",
      value: 2,
      slide: function( event, ui ) {
                var input = $(this).parent().find("input");
                input.val( ui.value );

            //Could also be written as $(this).parent().find("input").val(ui.value);
      }
});


来源: stackexchange

问:
How can I build a two or multidimensional list from already available one dimension list in python?
I have a list below.  I would like to create a two or multidimensional list from one dimension normal list

x= [ light, double , motor , boolean , brakes , unit 8]

I would like to see like that

x= [ [light, double] , [motor , boolean] , [brakes , unit 8]]

in this way I can select and check the type of specific signal

ContentLicense: CC BY-SA 4.0

Body:
Simplest way I know of:

>>> x = [1, 2, 3, 4, 5, 6]
>>> list(zip(x[::2], x[1::2]))
[(1, 2), (3, 4), (5, 6)]

In Python 2 you can drop the list.

To help see what's going on:

>>> x[::2]
[1, 3, 5]
>>> x[1::2]
[2, 4, 6]

This is called slicing.

ContentLicense: CC BY-SA 3.0


问:
Failed to open stream: Permission denied in Laravel 5.4 Even Al File Permission are granted to the path using Store Function in Laravel 5.4
I am trying to upload a file into C:\Users\sandeep\maxo\storage\app\public folder in laravel 5.4. I am using the below code

    <!DOCTYPE html>

            <title></title>

            <form  action="{{ URL::to('importExcelFile') }}" class="form-horizontal" method="post" enctype="multipart/form-data">
                <input type="file" name="import_file" />
                {{ csrf_field() }}

                <button >Import CSV or Excel File</button>
            </form>

    ```

$path = $request->file('import_file')->store('public');

is the laravel code.

But I am getting an error like this

fopen(C:\Users\sandeep\maxo\storage\app\public/K4oIHMXveyx2VChmAXAcNkTmoIXKACvqoIbbHCeB.): failed to open stream: Permission denied

This is the  picture of my error
Click here

But When i Upload the image its working fine

答: Try on terminal sudo chmod -R 777 public it will change the directory permission

Body:
I am trying to upload a file into C:\Users\sandeep\maxo\storage\app\public folder in laravel 5.4. I am using the below code

    <!DOCTYPE html>

            <title></title>

            <form  action="{{ URL::to('importExcelFile') }}" class="form-horizontal" method="post" enctype="multipart/form-data">
                <input type="file" name="import_file" />
                {{ csrf_field() }}

                <button >Import CSV or Excel File</button>
            </form>

$path = $request->file('import_file')->store('public');

is the laravel code.

But I am getting an error like this

fopen(C:\Users\sandeep\maxo\storage\app\public/K4oIHMXveyx2VChmAXAcNkTmoIXKACvqoIbbHCeB.): failed to open stream: Permission denied

This is the  picture of my error
Click here

But When i Upload the image its working fine


问:
How to check if case class parameter has value or not in Scala
I have a case class QueryParamsas follows:

```<code>case class QueryParams(
limit: Option[Integer] = None,
refresh: Option[Boolean] = None,
organisationalUnit: Option[String] = None)
</code>```

These values limit,refresh,organisationalUnit are actually passed as query parameters in request url for play application.
I need to write a code to check if request URL contains any value for organisationalUnit and if yes I need to throw error .If no, I need to proceed with further operations.
Can anyone help me here

答:
Options are quite good for this kind of thing:

```<code>val params: QueryParams = ???

params.organizationalUnit.foreach(_ => throw new Exception("your error message"))
</code>```

In this way you'll throw only if organizationalUnit is defined. You can also express it as follows:

```<code>for (_ <- params.organizationalUnit) {
  throw new Exception("your error message")
}
</code>```

Or alternatively:

```<code>if (params.organizationalUnit.isDefined) {
  throw new Exception("your error message")
}
</code>```

The latter is probably the most readable, even though it may not be recognized as very idiomatic according to certain coding styles.

Body:
I have a case class QueryParamsas follows:

case class QueryParams(
limit: Option[Integer] = None,
refresh: Option[Boolean] = None,
organisationalUnit: Option[String] = None)

These values limit,refresh,organisationalUnit are actually passed as query parameters in request url for play application.
I need to write a code to check if request URL contains any value for organisationalUnit and if yes I need to throw error .If no, I need to proceed with further operations.
Can anyone help me here

Body:
Options are quite good for this kind of thing:

val params: QueryParams = ???

params.organizationalUnit.foreach(_ => throw new Exception("your error message"))

In this way you'll throw only if organizationalUnit is defined. You can also express it as follows:

for (_ <- params.organizationalUnit) {
  throw new Exception("your error message")
}

Or alternatively:

if (params.organizationalUnit.isDefined) {
  throw new Exception("your error message")
}

The latter is probably the most readable, even though it may not be recognized as very idiomatic according to certain coding styles.


问:
Find text in a project but within a specific folder
How do I do something like 'Find in Folder' from atom/vscode/sublime in spacemacs?

I have helm and projectile installed.

I have SPC-/ set to find in the complete project. But not able to figure out a way to find inside a folder/directory within a project.

答:
You can always use the Emacs function:

```<code>M-x find-grep-dired
</code>```

Emacs will ask you the directory and the string (or regexp) you want to search.

This will open a dired *Find* buffer where you can, for instance:

press the 'm' key to select files

press the 'Q' key to perform a search/replace over all the selected files

Body:
You can always use the Emacs function:

M-x find-grep-dired

Emacs will ask you the directory and the string (or regexp) you want to search.

This will open a dired *Find* buffer where you can, for instance:

press the 'm' key to select files

press the 'Q' key to perform a search/replace over all the selected files


问:
How to get value of dynamically generated checkboxes if the checkbox is true in Angularjs
Hi I am developing angularjs application. I have generated checkboxes dynamically using ng-repeat. My design is as below.

```<code><ul>
    <li ng-repeat="screen in screenMap">
        <input type="text" ng-model="screen.scrn_name" />
        <input type="hidden" value="{{screen.scrn_id}}" />
        <input type="checkbox" name="vehicle" value="Read">
        <input type="checkbox" name="vehicle" value="Write">
        <br>
    </li>
</ul>
<input type="button" value="APPLY" ng-click="apply()" />
</code>```

Below is my js code.

```<code> $scope.apply = function () {

        }
</code>```

I want to get array like scrn_name,true,false format. If the checkbox is checked then true else false.
May i know how can i get this? Any help would be appreciated. Thank you.

答:
go through angular checkbox

use ng-true-value and ng-true-value

```<code><ul>
<li ng-repeat="screen in screenMap">
<input type="text" ng-model="screen.scrn_name" />
<input type="hidden" value="{{screen.scrn_id}}"/>
<input type="checkbox" name="vehicle" ng-model="screen.write" ng-true-value="true" ng-false-value="false">
<input type="checkbox" name="vehicle" ng-model="screen.read" ng-true-value="true" ng-false-value="false"><br>
</li>
</ul>
<input type="button" value="APPLY" ng-click="apply()"/>

$scope.apply = function () {
  console.log($scope.screenMap);//[{..,read:true,write:false},...]
}
</code>```

Body:
Hi I am developing angularjs application. I have generated checkboxes dynamically using ng-repeat. My design is as below.

        <input type="text" ng-model="screen.scrn_name" />
        <input type="hidden" value="{{screen.scrn_id}}" />
        <input type="checkbox" name="vehicle" value="Read">
        <input type="checkbox" name="vehicle" value="Write">

<input type="button" value="APPLY" ng-click="apply()" />

Below is my js code.

 $scope.apply = function () {

        }

I want to get array like scrn_name,true,false format. If the checkbox is checked then true else false.
May i know how can i get this? Any help would be appreciated. Thank you.

Body:
go through angular checkbox

use ng-true-value and ng-true-value

<ul>
<li ng-repeat="screen in screenMap">
<input type="text" ng-model="screen.scrn_name" />
<input type="hidden" value="{{screen.scrn_id}}"/>
<input type="checkbox" name="vehicle" ng-model="screen.write" ng-true-value="true" ng-false-value="false">
<input type="checkbox" name="vehicle" ng-model="screen.read" ng-true-value="true" ng-false-value="false"><br>
</li>
</ul>
<input type="button" value="APPLY" ng-click="apply()"/>

$scope.apply = function () {
  console.log($scope.screenMap);//[{..,read:true,write:false},...]
}


问:
NumericUpDown ValueChanged preventDefault?
I want to create a form that allows the user to set a certain amount of points in five different fields (NumericUpDown). When that amount of points reaches 0, the user can't add any more. (I still want the user to be able to remove points, though.)

Here is my code so far:

```<code>private void calculateValue() {
  decimal tempValue = CMB_num_Aim.Value + CMB_num_Reflexes.Value +
  CMB_num_Positioning.Value + CMB_num_Movement.Value + CMB_num_Teamwork.Value;
  controlValue = currentValue - tempValue;
  MyBox.CMB_tb_cv.Text = controlValue.ToString();
}
</code>```

This Method (calculateValue) is calculates how many points the user have left (controlValue).

```<code>private void CMB_num_Aim_ValueChanged(object sender, EventArgs e) {
  calculateValue();
  if (controlValue < 0) {
     //Prevent Default here
     MessageBox.Show("You are out of points!");
  }
}
</code>```

This method (CMB_num_Aim_ValueChanged) fires when the value of the NumericUpDown control has changed. I have one of these for each field, each doing the same thing.

The method fires as expected, but I can't prevent it from happening - the user can apply more points than they have. How can I prevent the user from applying more points?

(I thought about making a mouseUp method, but I don't know if the user will use the mouse or if he will type in the value using the keyboard.)

答:
Replace

```<code>if (controlValue < 0) {
</code>```

By

```<code>if (controlValue <= 0) {
</code>```

Body:
I want to create a form that allows the user to set a certain amount of points in five different fields (NumericUpDown). When that amount of points reaches 0, the user can't add any more. (I still want the user to be able to remove points, though.)

Here is my code so far:

private void calculateValue() {
  decimal tempValue = CMB_num_Aim.Value + CMB_num_Reflexes.Value +
  CMB_num_Positioning.Value + CMB_num_Movement.Value + CMB_num_Teamwork.Value;
  controlValue = currentValue - tempValue;
  MyBox.CMB_tb_cv.Text = controlValue.ToString();
}

This Method (calculateValue) is calculates how many points the user have left (controlValue).

private void CMB_num_Aim_ValueChanged(object sender, EventArgs e) {
  calculateValue();
  if (controlValue < 0) {
     //Prevent Default here
     MessageBox.Show("You are out of points!");
  }
}

This method (CMB_num_Aim_ValueChanged) fires when the value of the NumericUpDown control has changed. I have one of these for each field, each doing the same thing.

The method fires as expected, but I can't prevent it from happening - the user can apply more points than they have. How can I prevent the user from applying more points?

(I thought about making a mouseUp method, but I don't know if the user will use the mouse or if he will type in the value using the keyboard.)

Body:
Replace

if (controlValue < 0) {

By

if (controlValue <= 0) {


问:
No response result when using RestSharp(in IIS)
This problem puzzle me so long time.

I write an asp.net project, and I use RestSharp to post my request to authorize whether user can log in the site.

Below is the code of the method of to call the authorize server

```<code>public static async Task<UserInfo> ValidatorResult(string userName, string passWord)
{
    var client = new RestClient(AuthUrl.BaseUrl);
    var request = new RestRequest(AuthUrl.LoginURL, Method.POST);
    //client.Proxy = new WebProxy("127.0.0.1", 8888);
    request.AddParameter(InformationDefine.CLIENT_ID_ID, InformationDefine.CLIENT_ID);
    request.AddParameter(InformationDefine.CLIENT_SECRET_ID, InformationDefine.CLIENT_SECRET);
    request.AddParameter(InformationDefine.GRANT_TYPE_ID, InformationDefine.GRANT_TYPE_PASSWORD);
    request.AddParameter(InformationDefine.MAIL_ID, userName);
    request.AddParameter(InformationDefine.PASSWORD_ID, passWord);
    var response = await client.ExecuteTaskAsync<UserInfo>(request);
    return response?.Data;
}
</code>```

And this is the address const of my authorize server:

```<code>class AuthUrl
{
    public const string BaseUrl = @"https://account.mysit.com.cn";

    public const string LoginURL = @"/api/oauth/access";
}
</code>```

When I use these codes in my local environment, I can get the right UserInfo, but when I publish this project to IIS server, I always get 500 code when I call this method.

The error is "response?.Data" is null.

I want to solve this problem and I tried so many ways.But all failed.

I want get the reason in the IIS so I added one line code

```<code>client.Proxy = new WebProxy("127.0.0.1", 8888);
</code>```

It's so amazing that when I open the fiddler, sometimes I can get the UserInfo, but when I close fiddler, the error appeared again.

Can you tell me why?

And How to solve this problem.

Thank you.

P.s I forgot one detail, in the IIS the binding domain of mysite is not below kinds "localhost" or "ip:port".

I have an another domain like "hai.xxxxx.co",  the address of my site is "hai.xxxxx.co:8088".

Update my the binding config in iis

答:
I think I know the key of this problem.

Because the authorize is not from my service, so I need a reverse proxy.

It's the reason of when I open the fiddle and set proxy in the code, I can't get response normally.

Body:
This problem puzzle me so long time.

I write an asp.net project, and I use RestSharp to post my request to authorize whether user can log in the site.

Below is the code of the method of to call the authorize server

public static async Task<UserInfo> ValidatorResult(string userName, string passWord)
{
    var client = new RestClient(AuthUrl.BaseUrl);
    var request = new RestRequest(AuthUrl.LoginURL, Method.POST);
    //client.Proxy = new WebProxy("127.0.0.1", 8888);
    request.AddParameter(InformationDefine.CLIENT_ID_ID, InformationDefine.CLIENT_ID);
    request.AddParameter(InformationDefine.CLIENT_SECRET_ID, InformationDefine.CLIENT_SECRET);
    request.AddParameter(InformationDefine.GRANT_TYPE_ID, InformationDefine.GRANT_TYPE_PASSWORD);
    request.AddParameter(InformationDefine.MAIL_ID, userName);
    request.AddParameter(InformationDefine.PASSWORD_ID, passWord);
    var response = await client.ExecuteTaskAsync<UserInfo>(request);
    return response?.Data;
}

And this is the address const of my authorize server:

class AuthUrl
{
    public const string BaseUrl = @"https://account.mysit.com.cn";

    public const string LoginURL = @"/api/oauth/access";
}

When I use these codes in my local environment, I can get the right UserInfo, but when I publish this project to IIS server, I always get 500 code when I call this method.

The error is "response?.Data" is null.

I want to solve this problem and I tried so many ways.But all failed.

I want get the reason in the IIS so I added one line code

client.Proxy = new WebProxy("127.0.0.1", 8888);

It's so amazing that when I open the fiddler, sometimes I can get the UserInfo, but when I close fiddler, the error appeared again.

Can you tell me why?

And How to solve this problem.

Thank you.

P.s I forgot one detail, in the IIS the binding domain of mysite is not below kinds "localhost" or "ip:port".

I have an another domain like "hai.xxxxx.co",  the address of my site is "hai.xxxxx.co:8088".

Update my the binding config in iis


问:
How to classify my array of object compared to my table?
I want to reorder my array of object, I want it follows (const quote) the theme position (const themeOrder).

```<code>const quote = [{
  theme: 'spirituality'
}, {
  theme: 'politic'
}, {
  theme: 'military'
}, {
  theme: 'politic'
}, {
  theme: 'tech'
}];
const themeOrder = ['tech', 'politic', 'military', 'spirituality'];
</code>```

I want a result like

```<code>newQuote = [{
  theme: 'tech'
}, {
  theme: 'politic'
}, {
  theme: 'military'
}, {
  theme: 'spirituality'
}]
</code>```

答:
To sort an array of objects, you can use:</p>

```<code>quotes.sort(function(a,b) {
   return (a.theme > b.theme) ? 1 : ((b.theme > a.theme) ? -1 : 0);
});
</code>```

Body:
I want to reorder my array of object, I want it follows (const quote) the theme position (const themeOrder).

const quote = [{
  theme: 'spirituality'
}, {
  theme: 'politic'
}, {
  theme: 'military'
}, {
  theme: 'politic'
}, {
  theme: 'tech'
}];
const themeOrder = ['tech', 'politic', 'military', 'spirituality'];

I want a result like

newQuote = [{
  theme: 'tech'
}, {
  theme: 'politic'
}, {
  theme: 'military'
}, {
  theme: 'spirituality'
}]

Body:
To sort an array of objects, you can use:

quotes.sort(function(a,b) {
   return (a.theme > b.theme) ? 1 : ((b.theme > a.theme) ? -1 : 0);
});


问:
React map redux state to create multiple components within a component
I am using the react-redux-mapbox-gl library. I have an array of spots that I want to map in order to create multiple overlay components within the Mapbox Component. However on trying to map the array I always get an undefined error. I am new to React/Redux so am not sure what the issue is. </p>

<p>My Component Below: </p>

```<code>import React from 'react';
import Mapbox from 'react-redux-mapbox-gl';

import SpotsOverlay from './SpotsOverlay'

const mapStateToProps = state => ({
  spots: state.homemap.spots
})

class HomeMap extends React.Component {

    render(){

    return (

    <Mapbox
      mapboxgl={mapboxgl}
      accessToken={mapAccessToken}
      getMap={this.getMap}
      style={this.mapStyle}
      options={this.mapOptions}
    >

      {
      this.props.spots.map(spot =>{
        return (
          <SpotsOverlay
            overlay={this.overlay}
            key={spot.id}/>
        );
      })
     }

    </Mapbox>
  );
}
}
</code>```

答:
Do the mapping outside of the return method might help.

```<code>class HomeMap extends React.Component {

    render(){

        let spots = [];

        if(this.props.spots) {
            spots = this.props.spots.map(spot =>{
                return (
                    <SpotsOverlay
                        overlay={this.overlay}
                        key={spot.id}/>
                );
            });
        }

        return (

            <Mapbox
                mapboxgl={mapboxgl}
                accessToken={mapAccessToken}
                getMap={this.getMap}
                style={this.mapStyle}
                options={this.mapOptions}
            >
                {spots}
            </Mapbox>
        );
    }
}
</code>```

As @MayankShukla said in his comment, the reason why this works better is that

initially reducer state is {}, so state.homemap.spots will be undefined and when you were using map of undefined

Body:
I am using the react-redux-mapbox-gl library. I have an array of spots that I want to map in order to create multiple overlay components within the Mapbox Component. However on trying to map the array I always get an undefined error. I am new to React/Redux so am not sure what the issue is.

My Component Below:

import React from 'react';
import Mapbox from 'react-redux-mapbox-gl';

import SpotsOverlay from './SpotsOverlay'

const mapStateToProps = state => ({
  spots: state.homemap.spots
})

class HomeMap extends React.Component {

    render(){

    return (

    <Mapbox
      mapboxgl={mapboxgl}
      accessToken={mapAccessToken}
      getMap={this.getMap}
      style={this.mapStyle}
      options={this.mapOptions}
    >

      {
      this.props.spots.map(spot =>{
        return (
          <SpotsOverlay
            overlay={this.overlay}
            key={spot.id}/>
        );
      })
     }

    </Mapbox>
  );
}
}

Body:
Do the mapping outside of the return method might help.

class HomeMap extends React.Component {

    render(){

        let spots = [];

        if(this.props.spots) {
            spots = this.props.spots.map(spot =>{
                return (
                    <SpotsOverlay
                        overlay={this.overlay}
                        key={spot.id}/>
                );
            });
        }

        return (

            <Mapbox
                mapboxgl={mapboxgl}
                accessToken={mapAccessToken}
                getMap={this.getMap}
                style={this.mapStyle}
                options={this.mapOptions}
            >
                {spots}
            </Mapbox>
        );
    }
}

As @MayankShukla said in his comment, the reason why this works better is that

initially reducer state is {}, so state.homemap.spots will be undefined and when you were using map of undefined


问:
IE's toLocaleString has strange characters in results
I've run into a super strange thing that apparently is IE-specific in toLocaleString on dates.

In the IE console window:

```<code>new Date("2014-08-28T20:51:09.9190106Z").toLocaleString();
"8/28/2014 1:51:09 PM"
</code>```

Now, type out that string manually as a string and compare it to what the method returned:

```<code>"8/28/2014 1:51:09 PM" === new Date("2014-08-28T20:51:09.9190106Z").toLocaleString();
false
</code>```

Does anyone have any idea why this is occurring in IE? This doesn't occur in Chrome.

Update: more examples:

```<code>new Date("8/28/2014 1:51:09 PM")
[date] Thu Aug 28 2014 13:51:09 GMT-0700 (Pacific Daylight Time)[date] Thu Aug 28 2014 13:51:09 GMT-0700 (Pacific Daylight Time)

new Date(new Date("2014-08-28T20:51:09.9190106Z").toLocaleString())
[date] Invalid Date[date] Invalid Date
</code>```

答:
Use

```<code>Str.replace(/[^ -~]/g,'')
</code>```

This will remove unwanted special characters.

Body:
I've run into a super strange thing that apparently is IE-specific in toLocaleString on dates.

In the IE console window:

new Date("2014-08-28T20:51:09.9190106Z").toLocaleString();
"8/28/2014 1:51:09 PM"

Now, type out that string manually as a string and compare it to what the method returned:

"8/28/2014 1:51:09 PM" === new Date("2014-08-28T20:51:09.9190106Z").toLocaleString();
false

Does anyone have any idea why this is occurring in IE? This doesn't occur in Chrome.

Update: more examples:

new Date("8/28/2014 1:51:09 PM")
[date] Thu Aug 28 2014 13:51:09 GMT-0700 (Pacific Daylight Time)[date] Thu Aug 28 2014 13:51:09 GMT-0700 (Pacific Daylight Time)

new Date(new Date("2014-08-28T20:51:09.9190106Z").toLocaleString())
[date] Invalid Date[date] Invalid Date

Body:
Use

Str.replace(/[^ -~]/g,'')

This will remove unwanted special characters.


问:
How can i get HttpSession session = request.getSession(true); value outside request mapping method
This work fine

```<code>@RequestMapping(value = "/users/emailfrom2")
    public String displayLogin3(Model model, HttpServletRequest request, HttpServletResponse response) {

    HttpSession session = request.getSession(true);
    String gsSessionID = (String) session.getAttribute("GSSessionID");

    System.out.println("Session ===>>>> " + gsSessionID);
    logger.debug("displayLogin3()");

    return "users/test1";
}
</code>```

but i want like this.like a global value.

```<code>public class UserController  {
String gsSessionID = (String) session.getAttribute("GSSessionID");
@RequestMapping(value = "/users/emailfrom2")
public String displayLogin3(Model model, HttpServletRequest request, HttpServletResponse response) {

            System.out.println("Session ===>>>> " + gsSessionID);
            logger.debug("displayLogin3()");
            return "users/test1";
        }

 @RequestMapping(value = "/users/emailfrom5")
    public String displayLogin5(Model model, HttpServletRequest request, HttpServletResponse response) {

     String sessionId = getSessionProperty(request, "GSSessionID");

        System.out.println("Session ===>>>> " + sessionId);
        logger.debug("displayLogin3()");

        return "users/test1";
    }
</code>```

}

```<code> @RequestMapping(value = "/users/emailfrom6")
public String displayLogin5(Model model, HttpServletRequest request, HttpServletResponse response) {

 String sessionId = getSessionProperty(request, "GSSessionID");

    System.out.println("Session ===>>>> " + sessionId);
    logger.debug("displayLogin3()");

    return "users/test1";
}
</code>```

i just want to write  String sessionId = getSessionProperty(request, "GSSessionID"); only one time in controller class not twice or thrice or more.
Any help will be appreciated..

答:
Use something like this:

```<code>public class UserController extends AbstractController {

   @RequestMapping(value = "/users/emailfrom2")
    public String displayLogin3(Model model, HttpServletRequest request, HttpServletResponse response) {

        String sessionId = getSessionID(request)

        System.out.println("Session ===>>>> " + sessionId);
        logger.debug("displayLogin3()");

        return "users/test1";
    }
}

public abstract class AbstractController {
    public String getSessionID(HttpServletRequest request){
        HttpSession session = request.getSession(true);
        return (String) session.getAttribute("GSSessionID");
    }
}
</code>```

UPDATE:

If as you said you can need different values from session you should modify this method:

public abstract class AbstractController {

```<code>    protected String gSSessionID;
    protected String gSPresentDate;

    @PreProcess
    public void loadSessionAttributes(@SessionAttribute(name="GSSessionID") String gSSessionID,
                                      @SessionAttribute(name="GSPresentDate") String gSPresentDate){
        this.gSSessionID = gSSessionID;
        this.gSPresentDate = gSPresentDate;
        //Some other session attributes
    }
}

public class UserController extends AbstractController {

    @RequestMapping(value = "/users/emailfrom2")
    public String displayLogin3(Model model, HttpServletRequest request, HttpServletResponse response) {

        System.out.println("Session ===>>>> " + gSSessionID);
        logger.debug("displayLogin3()");

        return "users/test1";
    }
}
</code>```

Body:
This work fine

@RequestMapping(value = "/users/emailfrom2")
    public String displayLogin3(Model model, HttpServletRequest request, HttpServletResponse response) {

    HttpSession session = request.getSession(true);
    String gsSessionID = (String) session.getAttribute("GSSessionID");

    System.out.println("Session ===>>>> " + gsSessionID);
    logger.debug("displayLogin3()");

    return "users/test1";
}

but i want like this.like a global value.

public class UserController  {
String gsSessionID = (String) session.getAttribute("GSSessionID");
@RequestMapping(value = "/users/emailfrom2")
public String displayLogin3(Model model, HttpServletRequest request, HttpServletResponse response) {

            System.out.println("Session ===>>>> " + gsSessionID);
            logger.debug("displayLogin3()");
            return "users/test1";
        }

 @RequestMapping(value = "/users/emailfrom5")
    public String displayLogin5(Model model, HttpServletRequest request, HttpServletResponse response) {

     String sessionId = getSessionProperty(request, "GSSessionID");

        System.out.println("Session ===>>>> " + sessionId);
        logger.debug("displayLogin3()");

        return "users/test1";
    }

}

 @RequestMapping(value = "/users/emailfrom6")
public String displayLogin5(Model model, HttpServletRequest request, HttpServletResponse response) {

 String sessionId = getSessionProperty(request, "GSSessionID");

    System.out.println("Session ===>>>> " + sessionId);
    logger.debug("displayLogin3()");

    return "users/test1";
}

i just want to write  String sessionId = getSessionProperty(request, "GSSessionID"); only one time in controller class not twice or thrice or more.
Any help will be appreciated..

Body:
Use something like this:

public class UserController extends AbstractController {

   @RequestMapping(value = "/users/emailfrom2")
    public String displayLogin3(Model model, HttpServletRequest request, HttpServletResponse response) {

        String sessionId = getSessionID(request)

        System.out.println("Session ===>>>> " + sessionId);
        logger.debug("displayLogin3()");

        return "users/test1";
    }
}

public abstract class AbstractController {
    public String getSessionID(HttpServletRequest request){
        HttpSession session = request.getSession(true);
        return (String) session.getAttribute("GSSessionID");
    }
}

UPDATE:

If as you said you can need different values from session you should modify this method:

public abstract class AbstractController {

    protected String gSSessionID;
    protected String gSPresentDate;

    @PreProcess
    public void loadSessionAttributes(@SessionAttribute(name="GSSessionID") String gSSessionID,
                                      @SessionAttribute(name="GSPresentDate") String gSPresentDate){
        this.gSSessionID = gSSessionID;
        this.gSPresentDate = gSPresentDate;
        //Some other session attributes
    }
}

public class UserController extends AbstractController {

    @RequestMapping(value = "/users/emailfrom2")
    public String displayLogin3(Model model, HttpServletRequest request, HttpServletResponse response) {

        System.out.println("Session ===>>>> " + gSSessionID);
        logger.debug("displayLogin3()");

        return "users/test1";
    }
}


问:
Laravel collection search case insensitive
I am searching through a collection and I would like to have this search case insensitive or at least change the collections values in lowercase. How can I do that?

```<code>$value = strtolower($value);
$collection = $collection->where($attribute, $value);
</code>```

$value is lowercase while the content in the collection not, so there are no matches.

答:
You can map over the collection and lowercase the attribute for each item:</p>

```<code>$value = strtolower($value);
$collection = $collection
    ->map(function ($item) use ($attribute) {
        $item->{$attribute} = strtolower($item->{$attribute});

        return $item;
    })
    ->where($attribute, $value);
</code>```

Body:
I am searching through a collection and I would like to have this search case insensitive or at least change the collections values in lowercase. How can I do that?

$value = strtolower($value);
$collection = $collection->where($attribute, $value);

$value is lowercase while the content in the collection not, so there are no matches.

Body:
You can map over the collection and lowercase the attribute for each item:

$value = strtolower($value);
$collection = $collection
    ->map(function ($item) use ($attribute) {
        $item->{$attribute} = strtolower($item->{$attribute});

        return $item;
    })
    ->where($attribute, $value);


问:
Reconfiguring the DNS to show the SSL certificate online?
So, I am trying to get the SSL certificate to show up on my website but even after following all the steps from the aws documentation and various internet tutorials. The SSL lock sign is still not visible up on my website.

I found this website really helpful and tried to follow all the steps listed there : https://blog.webinista.com/2016/02/enable-https-cloudfront-certificate-manager-s3/index.html

What I think the problem is that I am not quite certain how to reconfigure the DNS server after creating the cloudfront distribution. In this instance, I just created an alias target for my domain name (shamveelahammed.com) to point towards the cloudfront distribution. But this hasn't worked at all for me. At the moment, I only have 4 entries in my domain record set.
https://www.dropbox.com/s/5g2nkyxip1c22oo/Screen%20Shot%202017-07-05%20at%2002.05.31.png?dl=0

Any help with figuring out my next steps will be massively appreciated. (N.B I am very new to this and still learning how to use AWS.)

答:
DNS isn't the issue.

In CloudFront, each Cache Behavior needs its Viewer Protocol Policy configured for Redirect HTTP to HTTPS.


问:
Solr 5 how to search in specific field
I am using Solr version 5 for searching data. I am using below query which searches for keyword in all fields.

```<code>http://localhost:8983/solr/document/select?q=keyword1+keyword2&wt=json
</code>```

Can anyone suggest me query to search for keyword only in title field.

Thanks.

答:
The best way is to run the query from Admin concole. When we run it, it also provides the actuall SQL query executed. Just copy the query and use it.

About the question: search specific field value from the Solr. In the admin console look for 'Q' text box. write the yourfield=value OR yourfield:value. Hit the 'Execute Query' button. Top right side the SQL will be available.

Generated Query: ......select?indent=on&q=YOURFIELD:"VALUE"&wt=json

Title: Solr 5 how to search in specific field

Body:
I am using Solr version 5 for searching data. I am using below query which searches for keyword in all fields.

http://localhost:8983/solr/document/select?q=keyword1+keyword2&wt=json

Can anyone suggest me query to search for keyword only in title field.

Thanks.


问:
PHP Regex explode the string using ',' except ',' inside quote and double qoute
How to do explode except using ',' but not inside quote and double quote?

This is the string i want to explode:

```<code>`ot_request_id` int(11) NOT NULL,`ot_hours` int(11) NOT NULL,`ot_timelog_id` int(11) NOT NULL,`ot_user_id` int(11) NOT NULL,`ot_filing_date` datetime NOT NULL,`ot_approveby_id` int(11) NOT NULL,`final_approved` int(11) NOT NULL DEFAULT '0' , `ot_token` varchar(100) DEFAULT 'Your, name, here' NOT NULL,`startTime` datetime NOT NULL,`endTime` datetime NOT NULL
</code>```

I want the output to become

```<code>`ot_request_id` int(11) NOT NULL `ot_request_id` int(11) NOT NULL,
`ot_hours` int(11) NOT NULL ,
`ot_timelog_id` int(11) NOT NULL,
`ot_user_id` int(11) NOT NULL,
`ot_filing_date` datetime NOT NULL,
`ot_approveby_id` int(11) NOT NULL,
`final_approved` int(11) NOT NULL DEFAULT '0' ,
`ot_token` varchar(100) DEFAULT 'Your, name, here' NOT NULL,
`startTime` datetime NOT NULL,
`endTime` datetime NOT NULL
</code>```

here is my code:

```<code>$array = explode(",",$str);// change to Regex
foreach($array as $m){
    echo "<br>$m";
}
</code>```

答:
Use this regex:

```<code>(?<=,)(?=(?:(?:[^`'"]*[`'"]){2})*[^`'"]*$)
</code>```

It covers ' "  and ` as quote

Regex demo

Sample Source ( run here )

```<code>$re = '/(?<=,)(?=(?:(?:[^`\'"]*[`\'"]){2})*[^`\'"]*$)/m';

$str = '`ot_request_id` int(11) NOT NULL `ot_request_id` int(11) NOT NULL,`ot_hours` int(11) NOT NULL,`ot_timelog_id` int(11) NOT NULL,`ot_user_id` int(11) NOT NULL,`ot_filing_date` datetime NOT NULL,`ot_approveby_id` int(11) NOT NULL,`final_approved` int(11) NOT NULL DEFAULT \'0\' ,
`ot_token` varchar(100) DEFAULT \'Your, name, here\' NOT NULL,`startTime` datetime NOT NULL,`endTime` datetime NOT NULL';

$keywords = preg_split($re,$str);
print_r($keywords);
</code>```

It will output:

```<code>Array ( [0] => `ot_request_id` int(11) NOT NULL `ot_request_id` int(11) NOT NULL, [1] => `ot_hours` int(11) NOT NULL, [2] => `ot_timelog_id` int(11) NOT NULL, [3] => `ot_user_id` int(11) NOT NULL, [4] => `ot_filing_date` datetime NOT NULL, [5] => `ot_approveby_id` int(11) NOT NULL, [6] => `final_approved` int(11) NOT NULL DEFAULT '0' , [7] => `ot_token` varchar(100) DEFAULT 'Your, name, here' NOT NULL, [8] => `startTime` datetime NOT NULL, [9] => `endTime` datetime NOT NULL )
</code>```

Body:
How to do explode except using ',' but not inside quote and double quote?

This is the string i want to explode:

`ot_request_id` int(11) NOT NULL,`ot_hours` int(11) NOT NULL,`ot_timelog_id` int(11) NOT NULL,`ot_user_id` int(11) NOT NULL,`ot_filing_date` datetime NOT NULL,`ot_approveby_id` int(11) NOT NULL,`final_approved` int(11) NOT NULL DEFAULT '0' , `ot_token` varchar(100) DEFAULT 'Your, name, here' NOT NULL,`startTime` datetime NOT NULL,`endTime` datetime NOT NULL

I want the output to become

`ot_request_id` int(11) NOT NULL `ot_request_id` int(11) NOT NULL,
`ot_hours` int(11) NOT NULL ,
`ot_timelog_id` int(11) NOT NULL,
`ot_user_id` int(11) NOT NULL,
`ot_filing_date` datetime NOT NULL,
`ot_approveby_id` int(11) NOT NULL,
`final_approved` int(11) NOT NULL DEFAULT '0' ,
`ot_token` varchar(100) DEFAULT 'Your, name, here' NOT NULL,
`startTime` datetime NOT NULL,
`endTime` datetime NOT NULL

here is my code:

$array = explode(",",$str);// change to Regex
foreach($array as $m){
    echo "
$m";
}

Body:
Use this regex:

(?<=,)(?=(?:(?:[^`'"]*[`'"]){2})*[^`'"]*$)

It covers ' "  and ` as quote

Regex demo

Sample Source ( run here )

$re = '/(?<=,)(?=(?:(?:[^`\'"]*[`\'"]){2})*[^`\'"]*$)/m';

$str = '`ot_request_id` int(11) NOT NULL `ot_request_id` int(11) NOT NULL,`ot_hours` int(11) NOT NULL,`ot_timelog_id` int(11) NOT NULL,`ot_user_id` int(11) NOT NULL,`ot_filing_date` datetime NOT NULL,`ot_approveby_id` int(11) NOT NULL,`final_approved` int(11) NOT NULL DEFAULT \'0\' ,
`ot_token` varchar(100) DEFAULT \'Your, name, here\' NOT NULL,`startTime` datetime NOT NULL,`endTime` datetime NOT NULL';

$keywords = preg_split($re,$str);
print_r($keywords);

It will output:

Array ( [0] => `ot_request_id` int(11) NOT NULL `ot_request_id` int(11) NOT NULL, [1] => `ot_hours` int(11) NOT NULL, [2] => `ot_timelog_id` int(11) NOT NULL, [3] => `ot_user_id` int(11) NOT NULL, [4] => `ot_filing_date` datetime NOT NULL, [5] => `ot_approveby_id` int(11) NOT NULL, [6] => `final_approved` int(11) NOT NULL DEFAULT '0' , [7] => `ot_token` varchar(100) DEFAULT 'Your, name, here' NOT NULL, [8] => `startTime` datetime NOT NULL, [9] => `endTime` datetime NOT NULL )


问:
Duplicate tuples in tuple relational calculus
Suppose we have a relation Student(Name,Marks) with 2 tuples (a,100) and (a,100).
Now if I have a expression like :-
{ t.Name, t.Marks | Student(t) and t.Marks=100) . Then will I get both tuples or only a single tuple?

I know that in relation algebra we use project operator which removes duplicates .

I couldn't find a reference which says that in tuple relational calculus we don't consider duplicates.

答:
Relations are defined as sets, not tables/bags. That means relations don't have multiple identical tuples.

Representing the same number/value/fact twice doesn't mean I represented two different numbers/values/facts.


答:
You could instead use the filter() method with a callback that does what you want:

$collection = $collection->filter(function ($item) use ($attribute, $value) {
    return strtolower($item[$attribute]) == strtolower($value);
});
```

Title: Laravel collection search case insensitive


问:
How to build evpp in Linux Mint
I want to use evpp library in my project but I cannot build it in my OS. My OS is Linux mint 18.1 and and I use the release build script in tools folder (release-build.sh). I am getting the following errors;

```In file included from /home/reza/Downloads/evpp-0.6.1/evpp/dns_resolver.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn_pool.h:9:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn_pool.cc:1:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:590: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/httpc/conn_pool.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/httpc/conn_pool.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:446: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/dns_resolver.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/dns_resolver.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn.h:4:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn.cc:1:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:662: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/httpc/conn.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/httpc/conn.cc.o] Error 1
[ 42%] Linking C executable ../../../bin/benchmark_tcp_libevent_client
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/invoke_timer.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:278: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/invoke_timer.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/invoke_timer.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn_pool.h:9:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn_pool.cc:1:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_server.h:4:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_server.cc:3:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:398: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/tcp_server.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/tcp_server.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:590: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/httpc/conn_pool.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/httpc/conn_pool.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/fd_channel.cc:7:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:86: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/fd_channel.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/fd_channel.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:6:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:494: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/http/http_server.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/http/http_server.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/event_loop.cc:5:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:134: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/event_loop.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/event_loop.cc.o] Error 1
[ 42%] Built target benchmark_ioevent_libevent
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/udp/udp_server.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn_pool.h:9:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/request.cc:3:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:686: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/httpc/request.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/httpc/request.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:566: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/udp/udp_server.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/udp/udp_server.cc.o] Error 1
[ 42%] Linking C executable ../../../bin/benchmark_http_libevent
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn_pool.h:9:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/request.cc:3:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:686: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/httpc/request.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/httpc/request.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/event_loop.cc:5:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:134: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/event_loop.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/event_loop.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn.h:4:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/response.cc:3:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/http/service.cc:5:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:470: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/http/service.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/http/service.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:614: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/httpc/response.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/httpc/response.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/listener.cc:4:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/event_loop_thread_pool.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:302: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/event_loop_thread_pool.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/event_loop_thread_pool.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/event_watcher.cc:7:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:182: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/event_watcher.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/event_watcher.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_client.h:4:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_client.cc:5:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/dns_resolver.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_server.h:4:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_server.cc:3:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/event_loop_thread_pool.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:350: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/listener.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/listener.cc.o] Error 1
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:302: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/event_loop_thread_pool.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/event_loop_thread_pool.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:398: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/tcp_server.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/tcp_server.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:446: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/dns_resolver.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/dns_resolver.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/event_watcher.cc:7:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:182: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/event_watcher.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/event_watcher.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:62: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/tcp_client.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/tcp_client.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/connector.cc:4:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/invoke_timer.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
compilation terminated.
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/fd_channel.cc:7:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:278: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/invoke_timer.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/invoke_timer.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:86: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/fd_channel.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/fd_channel.cc.o] Error 1
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:374: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/connector.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/connector.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/http/service.cc:5:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:470: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/http/service.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/http/service.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_client.h:4:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_client.cc:5:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/connector.cc:4:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/event_loop_thread.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
compilation terminated.
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/listener.cc:4:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:206: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/event_loop_thread.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/event_loop_thread.cc.o] Error 1
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:374: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/connector.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/connector.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:62: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/tcp_client.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/tcp_client.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_conn.cc:7:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:326: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/tcp_conn.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/tcp_conn.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/event_loop_thread.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn.h:4:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn.cc:1:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:662: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/httpc/conn.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/httpc/conn.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:206: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/event_loop_thread.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/event_loop_thread.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn.h:4:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/response.cc:3:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:350: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/listener.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/listener.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:614: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/httpc/response.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/httpc/response.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:6:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:494: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/http/http_server.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/http/http_server.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/udp/udp_server.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_conn.cc:7:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:326: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/tcp_conn.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/tcp_conn.cc.o] Error 1
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:566: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/udp/udp_server.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/udp/udp_server.cc.o] Error 1
[ 42%] Built target benchmark_tcp_libevent_client
[ 42%] Built target benchmark_http_libevent
[ 42%] Linking CXX executable ../../bin/benchmark_gettimeofday
[ 42%] Linking CXX executable ../../../../bin/example_recipes_self_control_timer_basic_02
[ 42%] Built target benchmark_gettimeofday
[ 42%] Linking CXX executable ../../../../bin/example_recipes_self_control_timer_basic_01
[ 42%] Built target example_recipes_self_control_timer_basic_02
[ 42%] Built target example_recipes_self_control_timer_basic_01
[ 43%] Linking CXX executable ../../../../bin/example_recipes_self_control_timer_periodic_04
[ 43%] Linking CXX executable ../../../../bin/example_recipes_self_control_timer_cancel_03
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
evpp/CMakeFiles/evpp_boost.dir/build.make:278: recipe for target 'evpp/CMakeFiles/evpp_boost.dir/invoke_timer.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_boost.dir/invoke_timer.cc.o] Error 4
make[2]: *** Waiting for unfinished jobs....
virtual memory exhausted: Cannot allocate memory
virtual memory exhausted: Cannot allocate memory
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Stop()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:174:44: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto fn = [&count, &promise, this, hs = lt.hservice]() {
                                            ^
evpp/CMakeFiles/evpp_boost.dir/build.make:470: recipe for target 'evpp/CMakeFiles/evpp_boost.dir/http/service.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_boost.dir/http/service.cc.o] Error 1
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Pause()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:214:19: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto f = [hs = lt.hservice]() {
                   ^
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Continue()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:225:19: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto f = [hs = lt.hservice]() {
                   ^
evpp/CMakeFiles/evpp_static.dir/build.make:614: recipe for target 'evpp/CMakeFiles/evpp_static.dir/httpc/response.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_static.dir/httpc/response.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:282: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/all' failed
make[1]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:319: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/all' failed
make[1]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/all] Error 2
[ 43%] Built target example_recipes_self_control_timer_periodic_04
[ 43%] Built target example_recipes_self_control_timer_cancel_03
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Stop()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:174:44: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto fn = [&count, &promise, this, hs = lt.hservice]() {
                                            ^
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Pause()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:214:19: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto f = [hs = lt.hservice]() {
                   ^
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Continue()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:225:19: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto f = [hs = lt.hservice]() {
                   ^
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Stop()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:174:44: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto fn = [&count, &promise, this, hs = lt.hservice]() {
                                            ^
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Pause()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:214:19: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto f = [hs = lt.hservice]() {
                   ^
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Continue()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:225:19: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto f = [hs = lt.hservice]() {
                   ^
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Stop()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:174:44: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto fn = [&count, &promise, this, hs = lt.hservice]() {
                                            ^
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Pause()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:214:19: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto f = [hs = lt.hservice]() {
                   ^
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Continue()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:225:19: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto f = [hs = lt.hservice]() {
                   ^
[ 43%] Linking CXX static library ../lib/libevpp_lite_static.a
[ 43%] Built target evpp_lite_static
CMakeFiles/Makefile2:245: recipe for target 'evpp/CMakeFiles/evpp_boost.dir/all' failed
make[1]: *** [evpp/CMakeFiles/evpp_boost.dir/all] Error 2
[ 44%] Linking CXX static library ../lib/libevpp_boost_static.a
CMakeFiles/Makefile2:134: recipe for target 'evpp/CMakeFiles/evpp_static.dir/all' failed
make[1]: *** [evpp/CMakeFiles/evpp_static.dir/all] Error 2
[ 44%] Built target evpp_boost_static
[ 44%] Linking CXX shared library ../lib/libevpp.so
[ 44%] Built target evpp
[ 44%] Linking CXX executable ../../../bin/benchmark_tcp_asio_server
[ 44%] Built target benchmark_tcp_asio_server
[ 44%] Linking CXX executable ../../../bin/benchmark_tcp_asio_client
[ 44%] Built target benchmark_tcp_asio_client
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
```

I installed all third-part libraries like boost, glog and gtest look here. Am I missing something?

答:
I asked my problem in Github. Please refer to the following page for the answer.
Issue Solved</p>

Title: How to build evpp in Linux Mint

Body:
I want to use evpp library in my project but I cannot build it in my OS. My OS is Linux mint 18.1 and and I use the release build script in tools folder (release-build.sh). I am getting the following errors;

In file included from /home/reza/Downloads/evpp-0.6.1/evpp/dns_resolver.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn_pool.h:9:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn_pool.cc:1:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:590: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/httpc/conn_pool.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/httpc/conn_pool.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:446: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/dns_resolver.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/dns_resolver.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn.h:4:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn.cc:1:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:662: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/httpc/conn.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/httpc/conn.cc.o] Error 1
[ 42%] Linking C executable ../../../bin/benchmark_tcp_libevent_client
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/invoke_timer.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:278: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/invoke_timer.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/invoke_timer.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn_pool.h:9:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn_pool.cc:1:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_server.h:4:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_server.cc:3:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:398: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/tcp_server.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/tcp_server.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:590: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/httpc/conn_pool.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/httpc/conn_pool.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/fd_channel.cc:7:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:86: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/fd_channel.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/fd_channel.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:6:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:494: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/http/http_server.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/http/http_server.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/event_loop.cc:5:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:134: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/event_loop.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/event_loop.cc.o] Error 1
[ 42%] Built target benchmark_ioevent_libevent
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/udp/udp_server.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn_pool.h:9:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/request.cc:3:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:686: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/httpc/request.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/httpc/request.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:566: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/udp/udp_server.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/udp/udp_server.cc.o] Error 1
[ 42%] Linking C executable ../../../bin/benchmark_http_libevent
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn_pool.h:9:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/request.cc:3:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:686: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/httpc/request.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/httpc/request.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/event_loop.cc:5:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:134: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/event_loop.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/event_loop.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn.h:4:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/response.cc:3:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/http/service.cc:5:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:470: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/http/service.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/http/service.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:614: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/httpc/response.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/httpc/response.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/listener.cc:4:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/event_loop_thread_pool.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:302: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/event_loop_thread_pool.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/event_loop_thread_pool.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/event_watcher.cc:7:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:182: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/event_watcher.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/event_watcher.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_client.h:4:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_client.cc:5:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/dns_resolver.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_server.h:4:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_server.cc:3:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/event_loop_thread_pool.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:350: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/listener.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/listener.cc.o] Error 1
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:302: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/event_loop_thread_pool.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/event_loop_thread_pool.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:398: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/tcp_server.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/tcp_server.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:446: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/dns_resolver.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/dns_resolver.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/event_watcher.cc:7:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:182: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/event_watcher.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/event_watcher.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:62: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/tcp_client.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/tcp_client.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/connector.cc:4:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/invoke_timer.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
compilation terminated.
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/fd_channel.cc:7:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:278: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/invoke_timer.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/invoke_timer.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:86: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/fd_channel.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/fd_channel.cc.o] Error 1
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:374: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/connector.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/connector.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/http/service.cc:5:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:470: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/http/service.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/http/service.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_client.h:4:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_client.cc:5:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/connector.cc:4:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/event_loop_thread.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
compilation terminated.
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/listener.cc:4:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:206: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/event_loop_thread.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/event_loop_thread.cc.o] Error 1
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:374: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/connector.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/connector.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:62: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/tcp_client.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/tcp_client.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_conn.cc:7:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:326: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/tcp_conn.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/tcp_conn.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/event_loop_thread.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn.h:4:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn.cc:1:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:662: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/httpc/conn.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/httpc/conn.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:206: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/event_loop_thread.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/event_loop_thread.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/conn.h:4:0,
                 from /home/reza/Downloads/evpp-0.6.1/evpp/httpc/response.cc:3:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:350: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/listener.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/listener.cc.o] Error 1
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:614: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/httpc/response.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/httpc/response.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:6:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue_static.dir/build.make:494: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/http/http_server.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/http/http_server.cc.o] Error 1
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/udp/udp_server.cc:3:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
In file included from /home/reza/Downloads/evpp-0.6.1/evpp/tcp_conn.cc:7:0:
/home/reza/Downloads/evpp-0.6.1/evpp/event_loop.h:22:45: fatal error: concurrentqueue/concurrentqueue.h: No such file or directory
compilation terminated.
compilation terminated.
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:326: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/tcp_conn.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/tcp_conn.cc.o] Error 1
evpp/CMakeFiles/evpp_concurrentqueue.dir/build.make:566: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/udp/udp_server.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/udp/udp_server.cc.o] Error 1
[ 42%] Built target benchmark_tcp_libevent_client
[ 42%] Built target benchmark_http_libevent
[ 42%] Linking CXX executable ../../bin/benchmark_gettimeofday
[ 42%] Linking CXX executable ../../../../bin/example_recipes_self_control_timer_basic_02
[ 42%] Built target benchmark_gettimeofday
[ 42%] Linking CXX executable ../../../../bin/example_recipes_self_control_timer_basic_01
[ 42%] Built target example_recipes_self_control_timer_basic_02
[ 42%] Built target example_recipes_self_control_timer_basic_01
[ 43%] Linking CXX executable ../../../../bin/example_recipes_self_control_timer_periodic_04
[ 43%] Linking CXX executable ../../../../bin/example_recipes_self_control_timer_cancel_03
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
evpp/CMakeFiles/evpp_boost.dir/build.make:278: recipe for target 'evpp/CMakeFiles/evpp_boost.dir/invoke_timer.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_boost.dir/invoke_timer.cc.o] Error 4
make[2]: *** Waiting for unfinished jobs....
virtual memory exhausted: Cannot allocate memory
virtual memory exhausted: Cannot allocate memory
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Stop()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:174:44: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto fn = [&count, &promise, this, hs = lt.hservice]() {
                                            ^
evpp/CMakeFiles/evpp_boost.dir/build.make:470: recipe for target 'evpp/CMakeFiles/evpp_boost.dir/http/service.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_boost.dir/http/service.cc.o] Error 1
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Pause()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:214:19: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto f = [hs = lt.hservice]() {
                   ^
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Continue()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:225:19: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto f = [hs = lt.hservice]() {
                   ^
evpp/CMakeFiles/evpp_static.dir/build.make:614: recipe for target 'evpp/CMakeFiles/evpp_static.dir/httpc/response.cc.o' failed
make[2]: *** [evpp/CMakeFiles/evpp_static.dir/httpc/response.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:282: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue.dir/all' failed
make[1]: *** [evpp/CMakeFiles/evpp_concurrentqueue.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:319: recipe for target 'evpp/CMakeFiles/evpp_concurrentqueue_static.dir/all' failed
make[1]: *** [evpp/CMakeFiles/evpp_concurrentqueue_static.dir/all] Error 2
[ 43%] Built target example_recipes_self_control_timer_periodic_04
[ 43%] Built target example_recipes_self_control_timer_cancel_03
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Stop()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:174:44: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto fn = [&count, &promise, this, hs = lt.hservice]() {
                                            ^
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Pause()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:214:19: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto f = [hs = lt.hservice]() {
                   ^
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Continue()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:225:19: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto f = [hs = lt.hservice]() {
                   ^
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Stop()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:174:44: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto fn = [&count, &promise, this, hs = lt.hservice]() {
                                            ^
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Pause()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:214:19: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto f = [hs = lt.hservice]() {
                   ^
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Continue()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:225:19: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto f = [hs = lt.hservice]() {
                   ^
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Stop()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:174:44: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto fn = [&count, &promise, this, hs = lt.hservice]() {
                                            ^
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Pause()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:214:19: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto f = [hs = lt.hservice]() {
                   ^
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc: In member function ‘void evpp::http::Server::Continue()’:
/home/reza/Downloads/evpp-0.6.1/evpp/http/http_server.cc:225:19: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
         auto f = [hs = lt.hservice]() {
                   ^
[ 43%] Linking CXX static library ../lib/libevpp_lite_static.a
[ 43%] Built target evpp_lite_static
CMakeFiles/Makefile2:245: recipe for target 'evpp/CMakeFiles/evpp_boost.dir/all' failed
make[1]: *** [evpp/CMakeFiles/evpp_boost.dir/all] Error 2
[ 44%] Linking CXX static library ../lib/libevpp_boost_static.a
CMakeFiles/Makefile2:134: recipe for target 'evpp/CMakeFiles/evpp_static.dir/all' failed
make[1]: *** [evpp/CMakeFiles/evpp_static.dir/all] Error 2
[ 44%] Built target evpp_boost_static
[ 44%] Linking CXX shared library ../lib/libevpp.so
[ 44%] Built target evpp
[ 44%] Linking CXX executable ../../../bin/benchmark_tcp_asio_server
[ 44%] Built target benchmark_tcp_asio_server
[ 44%] Linking CXX executable ../../../bin/benchmark_tcp_asio_client
[ 44%] Built target benchmark_tcp_asio_client
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

I installed all third-part libraries like boost, glog and gtest look here. Am I missing something?