ubuntu-14.04

How to install Ruby 2.1.4 on Ubuntu 14.04

感情迁移 提交于 2019-12-02 13:50:40
I dont know how to install the latest Ruby on Ubuntu. First I installed the default Ruby 1.9.3, using sudo apt-get install ruby Then I tried to install the 2.0 version using sudo apt-get install ruby2.0 My version of Ruby is still "ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux])" What should I do? First of all, install the prerequisite libraries: sudo apt-get update sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev Then install

Could not find driver ( PHP and Firebird )

早过忘川 提交于 2019-12-02 12:29:42
问题 I have a web-based PHP script named portail , so I want to make it functional on Ubuntu . I installed Xampp 5.6 , Firebird 2.5 under Ubuntu , then I uncommented the library: "extension=php_pdo_firebird.dll" and I made the specific configuration for php5 and firebird (https://mapopa.blogspot.com/2009/04/php5-and-firebird-pdo-on-ubuntu-hardy.html), but he always shows me the following message could not find driver localhost/portail Screenshot: 回答1: You should install the required php extension

Environment Variable replacement in Logstash when running as a service in Ubuntu

爱⌒轻易说出口 提交于 2019-12-02 10:29:01
I understand that logstash now supports environment variables in config, as described here . But I can't seem to get it working when running logstash as a service. I am on ubuntu 14.04, logstash 1:2.3.3-1, and I launch logstash with sudo service logstash start . A final twist is that I am including logstash in a docker container, and I do NOT want to hardcode the variable value in my Dockerfile, I want it to ultimately be sourced from the command line when I launch the container, e.g. docker run -e ES_HOST='my_host' ...etc... . This is really the main reason I want to use environment variables

Problems adding cURL to OAuth request engine support

一个人想着一个人 提交于 2019-12-02 09:44:17
问题 I've recently been setting up a new environment for a web application I'm working on and I've run into this following issue that I cannot figure out. Currently I have a docker-composer setup based off of https://hub.docker.com/r/ruslangetmansky/docker-apache-php/ Where I have my API, APP and DB running and need them to talk between each other. During the initialisation of this, I'm currently doing the following command: command: bash -c 'apt-get update && apt-get -y install curl libcurl3

node-gyp rebuild error while installing node modules

半城伤御伤魂 提交于 2019-12-02 08:49:52
I tried installing zerorpc package on node using 'npm install zerorpc' and I am getting following error. The error is because node-gyp fails to rebuild. npm http GET https://registry.npmjs.org/zerorpc npm http 304 https://registry.npmjs.org/zerorpc npm http GET https://registry.npmjs.org/underscore/1.3.3 npm http GET https://registry.npmjs.org/node-uuid/1.3.3 npm http GET https://registry.npmjs.org/msgpack/1.0.2 npm http GET https://registry.npmjs.org/zmq npm http 304 https://registry.npmjs.org/node-uuid/1.3.3 npm http 304 https://registry.npmjs.org/msgpack/1.0.2 npm http 304 https://registry

pip install MySQL-python fails on ubuntu 14.04, error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

爱⌒轻易说出口 提交于 2019-12-02 08:41:23
问题 I've read all the stack overflow / google recommendations of package lists to install and none of them seem to resolved this. Migrating an ubuntu 14.04 webserver from a US hosting provider to DigitalOcean in Europe, both are configured with the same Ansible playbook but there must be something pre-installed on the instance in the US as MySQL-python==1.2.5 installs fine there. apt-get build-essential python-dev python-pip libssl-dev libmariadbclient-dev pip install MySQL-python When I first

why phantomjs code doesn't go through array?

巧了我就是萌 提交于 2019-12-02 08:10:51
问题 After running this code he save an infinite number of files with the source code of the first page("http://site1.com"), why he doesn't go through other links and doesn't stop ? var args = ["http://site1.com", "http://site2.com", "http://site3.com"]; var fs = require('fs'); var i = 0; function handle_page(file){ page.open(file,function(){ page.evaluate(function(){ fs.write(i + '.html', page.content, 'w'); }); setTimeout(next_page,100); }); } function next_page(){ var file = args.shift(); if(

Problems adding cURL to OAuth request engine support

一世执手 提交于 2019-12-02 07:03:06
I've recently been setting up a new environment for a web application I'm working on and I've run into this following issue that I cannot figure out. Currently I have a docker-composer setup based off of https://hub.docker.com/r/ruslangetmansky/docker-apache-php/ Where I have my API, APP and DB running and need them to talk between each other. During the initialisation of this, I'm currently doing the following command: command: bash -c 'apt-get update && apt-get -y install curl libcurl3 libcurl3-dev php5-curl php5-oauth && rm -rf /var/lib/apt/lists/* && composer install && /sbin/entrypoint.sh

why phantomjs code doesn't go through array?

廉价感情. 提交于 2019-12-02 06:26:05
After running this code he save an infinite number of files with the source code of the first page(" http://site1.com "), why he doesn't go through other links and doesn't stop ? var args = ["http://site1.com", "http://site2.com", "http://site3.com"]; var fs = require('fs'); var i = 0; function handle_page(file){ page.open(file,function(){ page.evaluate(function(){ fs.write(i + '.html', page.content, 'w'); }); setTimeout(next_page,100); }); } function next_page(){ var file = args.shift(); if(!file){ phantom.exit(0); } i++ handle_page(file); } next_page(); page.evaluate() is the sandboxed page

RuntimeError: populate() isn't reentrant in Django

怎甘沉沦 提交于 2019-12-02 05:19:32
I am trying to deploy django website.Project name is pom. I am trying to run django website in ec2 server using apache2 and getting the following error: Apache error file: [Fri Jul 24 12:37:33.621285 2015] [:info] [pid 20446:tid 140024755709824] mod_wsgi (pid=20446): Attach interpreter ''. [Fri Jul 24 12:37:33.621462 2015] [:info] [pid 20446:tid 140024755709824] mod_wsgi (pid=20446): Adding '/home/ubuntu/.virtualenvs/edusamosa/lib/python2.7/site-packages/' to path. [Fri Jul 24 12:37:44.145762 2015] [authz_core:debug] [pid 20448:tid 140024656201472] mod_authz_core.c(802): [client 49.248.57.164