ubuntu-14.04

yo angular generates files in wrong path ( home directory )

a 夏天 提交于 2019-12-04 10:11:41
问题 yo angular generates the files in my home directory and I don't know why. I did the following: ppa for node curl -sL https://deb.nodesource.com/setup | sudo bash - then install node sudo apt-get install -y nodejs create a symlink sudo ln -s "$(which nodejs)" /usr/bin/node install yeoman sudo npm install -g yo sudo npm install -g generator-angular next steps from the instruction from https://github.com/yeoman/generator-angular mkdir my-new-project && cd $_ now I run yo angular test1 now all

Why Icecast2 does not want to give the stream through https?

感情迁移 提交于 2019-12-04 09:41:13
问题 On a server with Ubuntu 14.04 LTS installed Icecast2 2.4.1 with SSL support. Also on this server work HTTPS website. I want insert on the page HTML5-player that will also take the stream through the SSL (otherwise - mixed content error). The site has a commercial SSL certificate, Icecast - a self-signed. Icecast config file: <icecast> <location>****</location> <admin>admin@*************</admin> <limits> <clients>1000</clients> <sources>2</sources> <threadpool>5</threadpool> <queue-size>524288

ImportError: No module named datetime

安稳与你 提交于 2019-12-04 08:49:42
问题 When I upgrade my Ubuntu into 14.04 from 12.04, this time I get this error: ImportError: No module named datetime 回答1: This happened to me when I created a virtualenv and then upgraded from 12.04 to 14.04. I had to delete my virtualenv and recreate it, and after doing that, everything worked again. 回答2: Just run this command. It worked like a charm! $ cp /usr/bin/python2.7 $(which python2.7) This just happened to me after the 14.10 update, and it seems to be because my virtual environments

Could not select 'OK' in mysql-apt-config [Ubuntu 14.04]

╄→гoц情女王★ 提交于 2019-12-04 08:20:35
问题 I am using Ubuntu 14.04. sudo apt-get update always give me this option to configure mysql-apt-config. I am have tried to select the version, press 'tab' -> key highlighted on 'OK', press 'Enter' but nothing happens. It goes back again highlighting the version number. Software Updater also crashes at mysql-apt-config. Any idea on what is causing this problem and how to get rid of it? Thx. 回答1: When you can't do apt-get purge mysql-apt-config because you're trapped: It won't execute because

Error installing Pillow on ubuntu 14.04

依然范特西╮ 提交于 2019-12-04 08:07:03
问题 I'm trying to install Pillow on Ubuntu 14.04 using this command: pip install Pillow but the installation fails with this error: ValueError: --enable-jpeg requested but jpeg not found, aborting. 回答1: The problem was that the package libjpeg-dev was not installed. To solve the problem you should do this: sudo apt-get install libjpeg-dev 回答2: Make sure Python-development packages are installed, if not then install it using the following commands : For Ubuntu sudo apt-get install python3-dev

How to install Ruby 2.1.4 on Ubuntu 14.04

岁酱吖の 提交于 2019-12-04 07:21:22
问题 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? 回答1: 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

How to install graph-tool for Anaconda Python 3.5 on linux-64?

╄→尐↘猪︶ㄣ 提交于 2019-12-04 06:47:20
I'm trying to install graph-tool for Anaconda Python 3.5 on Ubuntu 14.04 (x64), but it turns out that's a real trick. I tried this approach , but run into the problem: The following specifications were found to be in conflict: - graph-tool Use "conda info <package>" to see the dependencies for each package. Digging through the dependencies led to a dead-end at gobject-introspection So I tried another approach: Installed boost with conda, then tried to ./configure, make, and make install graph-tool... which got about as far as ./configure: =========================== Using python version: 3.5.2

Jenkins.log location on Ubuntu 14.04 desktop

拥有回忆 提交于 2019-12-04 06:37:41
Setup I am currently running a Jenkins instance on an Ubuntu 14.04 desktop machine. I have installed Jenkins via WAR distribution and am running Jenkins as a service on the host machine. Issue I am trying to access the jenkins.log file described here in the logging documentation on the Jenkins wiki. The purpose of accessing this file is to be sure we have a log to use in the event that Jenkins web UI is unavailable and there is an issue with Jenkins. I've taken a look in /var/log/jenkins/ as the documentation suggests, however the only file in that folder is a config file. Also, per the

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

久未见 提交于 2019-12-04 06:14:19
问题 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

how to get Threaded Building Blocks working in Ubuntu 14.04

大兔子大兔子 提交于 2019-12-04 06:03:40
I want to get TBB working, but I'm having a little difficulty getting the compiling to work on Ubuntu 14.04. I think it is likely a problem with setting the location of libraries for the compiler. I installed TBB using the following command: sudo apt-get install libtbb-dev I have a small test example that I am now trying to compile. The code is as follows: #include "tbb/task_scheduler_init.h" int main(int argc, char* argv[]) { tbb::task_scheduler_init init; return 0; } The command I am running to compile this code is as follows: g++ -std=c++11 -g -O2 -ltbb simple_test.cc -o simple_test I am