ubuntu-14.04

ubuntu 14.04 : VIM with YouCompleteMe plugin, throw “ImportError: No module named _io”

ε祈祈猫儿з 提交于 2019-12-12 01:55:00
问题 I was using python2.7.6, VIM 7.4 and YouCompleteMe plugin on my Ubuntu14.04. Today I did some update on my Ubuntu, but after that, I found my VIM cannot work properly with YouCompleteMe. When I start vim, it throws following error on my screen: Traceback (most recent call last): File "/usr/lib/python2.7/site.py", line 563, in <module> main() File "/usr/lib/python2.7/site.py", line 545, in main known_paths = addusersitepackages(known_paths) File "/usr/lib/python2.7/site.py", line 272, in

Hadoop does not see the input folder

心已入冬 提交于 2019-12-12 00:13:41
问题 I'm trying to install hadoop 2.7.1 (standalone mode) on Ubuntu Server 14.04.3 LTS. Following the main apache tutorial (https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/SingleCluster.html), I can start the process and see the dfshealth.html#tab-datanode at port 50070. But I can't go through beyond that point. I'm stuck on: "Copy the input files into the distributed filesystem:" ($ bin/hdfs dfs -put etc/hadoop input) The file is there but I'm getting the following

Setting PATH ubuntu 14.04

人盡茶涼 提交于 2019-12-11 23:06:55
问题 I have obstacle when run sudo ionc build android. Error log terminal: Set enviroment varibale in .profile: Please give me solutions. How to setting PATH that true. 回答1: The system is not able to find the environment variable ANDROID_HOME in your .bashrc file. To resolve this error, you need to add the following to line to your ~/.bashrc file: export ANDROID_HOME="<path/to/your/sdk/without/quotes>" For me, I added the following export ANDROID_HOME="/Users/chi6rag/Library/Android/sdk" And ran

(C Socket Programming) Seperate send() calls from server ending up in same client recv() buffer

我的未来我决定 提交于 2019-12-11 22:27:56
问题 I was wondering if anyone could shed any light as to why two seperate send() calls would end up in the same recv() buffer using the loopback address for testing yet once switched to two remote machines they would require two recv() calls instead? I have been looking at the wireshark captures yet cant seem to make any sense as to why this would be occuring. Perhaps someone could critique my code and tell me where im going wrong. The two incoming messages from the server is of an undetermined

FreeRadius Reading attributes while executing external script

喜夏-厌秋 提交于 2019-12-11 20:34:54
问题 Can someone give me a hint, how to modify Freeradius to read other attributes from an external script. I have this update control { Auth-Type := `/usr/bin/php -f /web/auth.php '%{NAS-Identifier} %{Calling-Station-Id}'` } But the reply right now can be only Access or Reject , but I would like to set also some attributes more like a bandwidth limitation to this user like output Accept WISPr-Bandwidth-Max-Up: xxx WISPr-Bandwidth-Max-Down: xxx WISPr-Redirection-URL: http://google.com I can

Unable to install ffmpeg on CircleCi 2.0

穿精又带淫゛_ 提交于 2019-12-11 17:22:58
问题 I have Ruby on Rails project which uses CircleCi to run tests. In the past I was using CircleCi 1.0 but now I migrated to CircleCi 2.0. I have problem with installing ffmpeg. CircleCi 2.0 uses Ubuntu 14.04. I install ffmpeg like this: # ffmpeg installation sudo add-apt-repository ppa:mc3man/trusty-media -y sudo apt-get update sudo apt-get install ffmpeg and my circle.yml config file looks like this: version: 2 environment: TZ: "/usr/share/zoneinfo/America/Los_Angeles" jobs: build: parallelism

-bash: /usr/local/bin/virtualenvwrapper.sh: No such file or directory #10

烂漫一生 提交于 2019-12-11 14:15:41
问题 I have no 'sudo' privilege. When I run printf '\n%s\n%s\n%s' '# virtualenv' 'export WORKON_HOME=~/virtualenvs' 'source /usr/local/bin/virtualenvwrapper.sh' >> ~/.bashrc it shows error: -bash: /usr/local/bin/virtualenvwrapper.sh: No such file or directory how to solve this problem? Can anyone give some advises? 回答1: Without sudo or any other way to raise privileges you don't have write access to /usr/local/bin/ so you cannot install virtualenvwrapper.sh there. Download a distribution, extract

Solr Tomcat org.apache.solr.common.SolrException: lazy loading error

允我心安 提交于 2019-12-11 13:57:06
问题 Ubuntu 14.04 I installed using sudo apt-get install solr-tomcat. It seems the "core" functionality was installed and is working, but not any Plugins (or I just don't know where to look). I am trying to use the extract function, which is a Plugin. When I attempt, I get this org.apache.solr.common.SolrException: lazy loading error at org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.getWrappedHandler(RequestHandlers.java:260) at org.apache.solr.core.RequestHandlers

scp files from amazon linux machine to virtual box [closed]

主宰稳场 提交于 2019-12-11 13:34:37
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am trying copy a directory from my amazon Linux machine to my virtual-box. I write the following command from my amazon Linux machine: scp /home/user/test xyz@xyz-VirtuaBox:/home/user but I get the error message: Could not resolve hostname xyz-virtualbox: Name or service not found. I am not sure what's going

JavaFX MediaPlayer in Ubuntu 14.04 64 bits

随声附和 提交于 2019-12-11 13:13:18
问题 I am trying to execute the simple program below in Ubuntu 14.04 64 bits. import javafx.application.Application; import javafx.scene.*; import javafx.scene.media.*; import javafx.stage.Stage; public class simple extends Application { public static void main(String[] args) throws Exception { launch(args); } @Override public void start(final Stage stage) throws Exception { final MediaPlayer oracleVid = new MediaPlayer( new Media("http://download.oracle.com/otndocs/products/javafx/JavaRap/prog