ubuntu-14.04

How to solve the issue of the conflict of anaconda and virtualenv

不羁的心 提交于 2019-11-28 08:22:17
问题 I was using virtualenv all the time and then I had also installed anaconda. Just now I tried to activate a virtual environment using the way of anaconda like source activate helloworld . (Indeed I don't remember if this is exactly the command I typed in). And then the environment had been activated. But when I tried to run the notebook, it was said that some libraries didn't exist even if I had installed them already in that environment. Not until then did I realize I had activated the wrong

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

拟墨画扇 提交于 2019-11-28 07:44:38
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', declared with attribute warn_unused_result [-Wunused-result] seteuid(getuid()); ^ linking shared

Where does CLion store executable files?

一个人想着一个人 提交于 2019-11-28 04:49:54
I install the CLion on a Ubuntu 14.04. I build my first project with help CMakeLists.txt: Source file: #include <iostream> using namespace std; int main() { cout << "Hello, World!" << endl; return 0; } CMakeLists.txt: cmake_minimum_required(VERSION 2.8.4) project(sh) set(SOURCE_FILES main.cpp) add_executable(sh ${SOURCE_FILES}) My source file is located in a /home/user/Desktop/sh . But after build, I don't see any executable file in this folder. Where is it? When you build under CLion, It prints the path it sends the executable to the Console: -- Build files have been written to: /home/<user>/

How to Install Manually Downloaded .box for Vagrant

六眼飞鱼酱① 提交于 2019-11-28 03:58:41
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. You can install downloaded box using this command vagrant box add laravel/homestead path/to/your/box/file.box Source: https://laracasts.com/forum/?p=1615-laravel-vagrant-homestead/0 I am able to run

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

前提是你 提交于 2019-11-28 03:23:05
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? 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 works. Then, your --convert-to pdf is not sufficient. It needs to be: --convert-to pdf:writer_pdf_Export Be

Can't run pip: UnicodeDecodeError

夙愿已清 提交于 2019-11-28 03:02:57
问题 I have trouble using pip. For example: pip install numpy --upgrade Gives me the following error: Collecting numpy Using cached numpy-1.10.2.tar.gz Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 211, in main status = self.run(options, args) File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 305, in run wb.build(autobuilding=True) File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 705,

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

安稳与你 提交于 2019-11-28 01:35:34
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? 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 message, but the "Unable to connect to dbus..." stuff disappeared when I executed sublime as a non-root user

pytesseract-no such file or directory error

非 Y 不嫁゛ 提交于 2019-11-27 21:56:17
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_string(im) File "/usr/local/lib/python2.7/dist-packages/pytesseract/pytesseract.py", line 142, in image

Compile c++14-code with g++

我怕爱的太早我们不能终老 提交于 2019-11-27 19:36:01
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? For gcc 4.8.4 you need to use -std=c++1y in later versions, looks like starting with 5.2 you can use -std=c++14 . If we look at the gcc online documents we can find the

How to compile and run C in sublime text 3?

北慕城南 提交于 2019-11-27 17:23:55
I would like to compile and run C program in sublime text 3 on ubuntu 14.04. Currently the program is being compiled with gcc using sublime text 3 executing a command (see below code), but I was wondering if it's possible to have the program execution output to appear on sublime text console as well. Here's what I currently have to compile C program with sublime text 3 c_compile.sublime-build { "cmd" : ["gcc", "$file_name", "-o", "${file_base_name}"], "selector" : "source.c", "shell":false, "working_dir" : "$file_path" } I've tried adding && ./${file_base_name} like this: { "cmd" : ["gcc", "