ubuntu-14.04

g++: internal compiler error: Segmentation fault (program cc1plus) - where do I start?

↘锁芯ラ 提交于 2021-02-07 04:18:46
问题 I am porting code that compiled on Ubuntu 14.04 to 16.04 . I have cloned my git repo, installed dependencies and tried the usual make command, soon I hit a g++: internal compiler error: Segmentation fault (program cc1plus) ... yet I am not sure where to start to diagnose and resolve this issue. I will share as much as I can, see if someone can guide me through a resolution. Ubuntu $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.2 LTS Release: 16

Problems with “zsh: command not found: sails”

心不动则不痛 提交于 2021-02-05 07:52:25
问题 I installed sails.js with via sudo npm install -g sails but i'm still getting zsh: command not found: sails I'm using Ubuntu 14.04 LTS. 回答1: First find out path for node which node will return something like /path/bin/node enter that location to bin cd /path uninstall present node by running rm -r bin/node bin/node-waf include/node lib/node lib/pkgconfig/nodejs.pc share/man/man1/node.1 then you'll want to install nvm by running curl https://raw.githubusercontent.com/creationix/nvm/v0.19.0

Check Resources Used by each Docker Container

半城伤御伤魂 提交于 2021-02-04 12:25:26
问题 How do you check the amount of resources (CPU, memory etc) being used by each Docker container that is running on the (Ubuntu) server? 回答1: you have docker stats see the doc http://docs.docker.com/reference/commandline/stats/ for example you can do docker stats $(docker ps -q) (that will display the id of the containers or if you want the name, see Is there any way to display container names in docker stats? , you can also you docker top if you are interested in a specific container http:/

Unable to CREATE PRIMARY INDEX for couchbase bucket. on UBUNTU 14.04

喜夏-厌秋 提交于 2021-01-29 03:50:44
问题 I am trying to get data from couchbase bucket using laravel 4.2 . And facing issue related to PRIMARY INDEX. Below are the details. Can someone please suggest where I am doing wrong. Thanks. Controller: <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use CouchbaseCluster; class HomeController extends Controller { public function index() { // phpinfo();die; // $Cluster = New CouchbaseCluster ( 'http://127.0.0.1:8091' ); $Bucket = $Cluster->OpenBucket(

Unable to CREATE PRIMARY INDEX for couchbase bucket. on UBUNTU 14.04

扶醉桌前 提交于 2021-01-29 03:41:00
问题 I am trying to get data from couchbase bucket using laravel 4.2 . And facing issue related to PRIMARY INDEX. Below are the details. Can someone please suggest where I am doing wrong. Thanks. Controller: <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use CouchbaseCluster; class HomeController extends Controller { public function index() { // phpinfo();die; // $Cluster = New CouchbaseCluster ( 'http://127.0.0.1:8091' ); $Bucket = $Cluster->OpenBucket(

use expect to enter password when need sudo in script

可紊 提交于 2021-01-29 02:02:00
问题 I am using Ubuntu 14.04 and installed expect. I am trying to write a script to enter password when it prompted. UPDATED Code: #!/usr/bin/expect -d set timeout 20 set pw odroid spawn sudo apt-get update expect {\[sudo]\ password for odroid: } send "$pw\r" close Any suggestions? thx UPDATE Errors: expect: does "" (spawn_id exp4) match glob pattern "\[sudo]\ password for odroid: "? no [sudo] password for odroid: expect: does "[sudo] password for odroid: " (spawn_id exp4) match glob pattern "\

use expect to enter password when need sudo in script

不羁岁月 提交于 2021-01-29 02:00:07
问题 I am using Ubuntu 14.04 and installed expect. I am trying to write a script to enter password when it prompted. UPDATED Code: #!/usr/bin/expect -d set timeout 20 set pw odroid spawn sudo apt-get update expect {\[sudo]\ password for odroid: } send "$pw\r" close Any suggestions? thx UPDATE Errors: expect: does "" (spawn_id exp4) match glob pattern "\[sudo]\ password for odroid: "? no [sudo] password for odroid: expect: does "[sudo] password for odroid: " (spawn_id exp4) match glob pattern "\

Get error “Too many authentication failures” by connecting to AWS EC2 through vnc viewer

爱⌒轻易说出口 提交于 2021-01-28 18:51:24
问题 I have set up an environment with AWS EC2 based on ubuntu 14.04 and configure vncserver under it. After everything is done, I am able to connect the EC2 instance with VNC viewer and see the desktop. However, after a period of time idle on vncviewer , the connection is disconnected and I have error "Too many authentication failures" After I restart the vncserver by going through ssh to EC2, I am able to use vncviewer to connect to the instance again. Any solution for me to not having the error

Jupyter notebook can't find kernel when run through /etc/rc.local

冷暖自知 提交于 2021-01-27 18:35:37
问题 I have a Jupyter Notebook server on an EC2 instance with python2 (default) and ITorch kernels. Everything works fine when run through SSH command line. The problem is that when I try to make this run at startup, the notebook server can't find ITorch kernel. I does work fine for python notebooks though. The error I get is a window saying Kernel not found I couldn't find a kernel matching iTorch. Please select a kernel: (python2) What I did was adding this line to /etc/rc.local /home/ubuntu

golang get massive read tcp ip:port i/o timeout in ubuntu 14.04 LTS

久未见 提交于 2021-01-27 12:42:27
问题 I wrote a golang program which run well in the past several months in ubuntu 12.04 LTS until I upgraded it to 14.04 LTS My program is focused on sending HTTP requests which send about 2-10 HTTP requests per second. The HTTP request address vary. When the problem occurs, first, some of the requests shows read tcp [ip]:[port]: i/o timeout , then after several minutes all requests show read tcp [ip]:[port]: i/o timeout , not any request can be sent. I restart the program, everything become right