ubuntu-14.04

compile Ruby 2.0 errors without rvm or rbenv , `readline.c:1886:26: error: 'Function' undeclared (first use in this function)`

戏子无情 提交于 2019-11-27 01:57:42
问题 I want to install gitlab, which don't recommend to use any ruby version manager. But This is my OS Linux dqa-dev 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:08:14 UTC 2014 i686 i686 i686 GNU/Linux linking shared-object psych.so installing default psych libraries make[2]: Leaving directory `/home/poc/ruby-2.0.0-p451/ext/psych' make[2]: Entering directory `/home/poc/ruby-2.0.0-p451/ext/pty' compiling pty.c pty.c: In function 'chfunc': pty.c:143:12: warning: ignoring return value of 'seteuid'

NetBeans 8.1 Activation Failure

你说的曾经没有我的故事 提交于 2019-11-27 01:52:25
问题 I am trying to install NetBeans 8.1 on my Ubuntu 14.04.3 LTS. When I try to create a new project, it shows an error, saying that "not all requested modules can be enabled". I tried activating it from the plugins, but to no avail. Why is this happening, and what can I do to resolve it? 回答1: I had the same problem with NetBeans 8.1 on Linux Mint 17.2 and I found the solution (during install a have chosen wrong JDK directory). If a compatible JDK installation cannot be found, you might need to

How to Install Manually Downloaded .box for Vagrant

你说的曾经没有我的故事 提交于 2019-11-27 00:18:40
问题 I manage to install Vagrant on my Ubuntu 14.04 LTS pc. How can I install vagrant box which I downloaded manually from a URL? I want to install Laravel Homestead but it will always fail because of my network connection. I want to download it from this link https://vagrantcloud.com/laravel/boxes/homestead/versions/11/providers/virtualbox.box but I don't know what to do after I downloaded the box. 回答1: You can install downloaded box using this command vagrant box add laravel/homestead path/to

Command `libreoffice --headless --convert-to pdf test.docx --outdir /pdf` is not working

。_饼干妹妹 提交于 2019-11-26 23:58:01
问题 I have to wait for long after using this LibreOffice command which is intended to convert DOCX into PDF: libreoffice --headless --convert-to pdf test.docx --outdir /pdf But I'm getting no response and no error. No file is converted. It looks like terminal is hanging. So, is there is any way to track the error? 回答1: I would first of all try it with giving absolute paths to the command. I suspect that the libreoffice binary does not work -- you have to locate the soffice binary and see if that

Ubuntu Serial Communication: reads failing and then coming in all at once

*爱你&永不变心* 提交于 2019-11-26 23:32:43
问题 I'm writing a program that runs on a MIO-3260 single board computer running Ubuntu server 14.04 and communicates with a AMC DPRANIE C100A400 drive. The program sends a string of hex codes to the drive and is supposed to receive a response for every message it sends. When I try it in realTerm on windows this works well so I don't think it's an issue with the drive. However, when I try to read from the serial port read() returns -1 almost all the time, until suddenly at a seemingly random point

pytesseract-no such file or directory error

青春壹個敷衍的年華 提交于 2019-11-26 23:06:48
问题 I am using Ubuntu 14.04. I have the following code: import Image import pytesseract im = Image.open('test.png') print pytesseract.image_to_string(im) but I keep getting the following error: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 540, in runfile execfile(filename, namespace) File "/home/chaitanya/pythonapp/localcopy.py", line 4, in <module> print pytesseract.image_to

Compile c++14-code with g++

本小妞迷上赌 提交于 2019-11-26 22:47:04
问题 I'm using g++ 4.8.4 on Ubuntu 14.04 LTS. When trying to compile with '-std=c++14', I get this error: g++: error unrecognized command line option '-std=c++14' Compiling with '-std=c++11' works fine, so I'm not sure what's going on. Does g++ really have no support for c++14 yet? Am I using a wrong command line option? I used "sudo apt-get install g++" which should automatically retrieve the latest version, is that correct? 回答1: For gcc 4.8.4 you need to use -std=c++1y in later versions, looks

Gtk-Message: Failed to load module “canberra-gtk-module” Unable to connect to dbus - Sublime text

删除回忆录丶 提交于 2019-11-26 21:57:09
问题 I'm working on a remote server (Ubuntu 14.04) through SSH -X. I have installed Sublime Text and when I try to open it I get Gtk-Message: Failed to load module "canberra-gtk-module" Unable to connect to dbus How do I solve this? 回答1: As I found at the end of this thread, it appears to be a problem with the libcanberra dependencies, I stumbled upon this and the solution worked for me on Sublime Text 2/Debian 8. So try running this: sudo apt-get install libcanberra-gtk* This got rid of the GTK

Completly uninstall nodejs, npm and node in ubuntu 14.04

断了今生、忘了曾经 提交于 2019-11-26 21:34:36
I know this question has been asked many times but I couldn't still do it. So I wrongly installed "node" doing sudo apt-get install node And later I installed nodejs (v0.10.37). I tried to update to v0.12 with npm but it keeps saying 0.10.37 when I do the nodejs -v . Also, I can't use the node command since i wrongly installed the other "node thing" before. I tried all the different commands that the people talks about in all the other answers and I couldn't do it yet. I think the main problem is that I keep having the wrong node package and installing the nodejs-legacy doesn't work. Also the

lxml installation error ubuntu 14.04 (internal compiler error)

若如初见. 提交于 2019-11-26 18:48:58
问题 I am having problems with installing lxml . I have tried the solutions of the relative questions in this site and other sites but could not fix the problem. Need some suggestions/solution on this. I am providing the full log after executing pip install lxml , Downloading/unpacking lxml Downloading lxml-3.3.5.tar.gz (3.5MB): 3.5MB downloaded Running setup.py (path:/tmp/pip_build_root/lxml/setup.py) egg_info for package lxml /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown