terminal

How to install SimpleCV on OSX 10.8

99封情书 提交于 2019-12-11 05:27:23
问题 I believe SimpleCV has installed correctly. When I run: sudo pip install SimpleCV And then in python try to import the library, I run into this error: ImportError: No module named pygame Is pygame required to run SimpleCV? I wouldnt have thought so, so then I try to use pip to install pygame and I get another error, saying I have a bad link or something: TTP error 400 while getting http://www.pygame.org/../../ftp/pygame-1.6.2.tar.bz2 (from http://www.pygame.org/download.shtml) Could not

Node.js Ubuntu Installation

邮差的信 提交于 2019-12-11 05:19:13
问题 I am following instructions from as someone suggested on stackoverflow: http://www.giantflyingsaucer.com/blog/?p=2284 After following all the steps when I command git clone https://github.com/joyent/node.git && cd node it shows cloning..... error: RPC failed; result=56, HTTP code = 100 fatal: The remote end hung up unexpectedly I am using Ubuntu, terminals, etc. for the very first time. Can you please suggest what to do? Is there any problem with the configuration? Thanks in advance for

Compile c++ file using external library from linux terminal

心已入冬 提交于 2019-12-11 05:06:34
问题 I have the following files: ex1.cpp ex1.h GLee.cpp GLee.h and I want to make it use the library (openmesh library) on the following path: home/xyz/Downloads/OpenMesh-2.3/src/OpenMesh/ I'm trying to execute it with this: g++ -Wall -o ex1 ex1.cpp GLee.cpp -L/..path../ but no luck, output is: In file included from ex1.cpp:17:0: ex1.h:28:38: fatal error: OpenMesh/Core/IO/MeshIO.hh: No such file or directory compilation terminated. what is the correct way of doing this? Thanks! 回答1: You need to

Java receives an error executing Ruby script; Terminal doesn't

流过昼夜 提交于 2019-12-11 04:58:36
问题 This is a forked problem off of this question: flac: "ERROR: input file has an ID3v2 tag" (it doesn't). I've solved the initial issue there but that didn't resolve one problem I was having, so I'm going to introduce it separately here. I'm using a Ruby gem called speech2text to convert an audio file into (approximated) text. Calling it on the command line works fine (Mac Terminal). However, the following Java code: String[] cmd = {"speech2text", "tmp/audio/pop-test-audio.wav"}; ProcessBuilder

Automatically Switching Between Symbolic Links and Folders

时光总嘲笑我的痴心妄想 提交于 2019-12-11 04:47:28
问题 I currently have my Dropbox saved on an external drive. I'm trying to figure out if at least one of theses two things is possible when I do not have my external drive with me: Can I create some kind of 'switch' so that when my external drive disconnects, the symbolic link automatically become a folder which I can still store my info in like usual, and next time I connect my external drive it will become a symbolic link again and upload the files that I stored while the drive was disconnected?

SSH Git without having to type in my password every time [duplicate]

大憨熊 提交于 2019-12-11 04:46:01
问题 This question already has answers here : Closed 8 years ago . I have a git repo set up on my website which can be accessed by ssh, but every time I push some files to the repo I have to type in my password again. Is there a way in which I only have to type my password in once? 回答1: Yes, you have to put your SSH public key on your server, in the ~/.ssh/authorized_keys file. You can find your public key on your local machine, in the ~/.ssh/id_rsa.pub file (supposing you are on a Unix system, I

Variable names in prompt instead of path

有些话、适合烂在心里 提交于 2019-12-11 04:28:39
问题 How can I prevent my zsh prompt from showing the variable name a path is assigned to instead of the path itself? foo="/some/path" cd "$foo" shows $ ~foo/ in my prompt instead $ /some/path/ 回答1: From the comments: you're seeing Named Directories. Check if AUTO_NAME_DIRS is set ( setopt | grep AUTO_NAME_DIRS ) - to disable this functionality, turn it off. 来源: https://stackoverflow.com/questions/16203555/variable-names-in-prompt-instead-of-path

How can I access XAMPP/Lampp folder via Terminal on Mac

别来无恙 提交于 2019-12-11 04:28:37
问题 I recently started using XAMPP on Mac and it installed the "lampp" folder under "Shared" and showing as an IP address in Finder. So I can access the files via Finder but I'm unable to cd into the folder via Terminal. The Shared folder is simply not visible. I tried /Volumes to see all volumes, but "lampp" wasn't listed, as well mounting it somehow but that also didn't work. Any ideas? It's so odd that I see the folder in Finder but not in Terminal! 回答1: I had the same problem the route for

Dpkg: warning: files list file for package 'x'missing; assuming package has no files currently installed in Ubuntu 16.04

让人想犯罪 __ 提交于 2019-12-11 04:23:26
问题 I am using Ubuntu 16.04 with lubunut desktop environment. I had the following problem for more than 3 days when I do apt-get upgrade . I don't know what is problem means and how to solve. Note: 3 days before I try upgrade Linux-header-4.4.66, but it showed an error. I deleted it. Now, I'm back to Linux-header-4.4.64, which worked fine before. Error on sudo apt-get dist-upgrade (only last 15 line of 500+ line error): dpkg: warning: files list file for package 'libxcb-xkb1:amd64' missing;

Installing beanstalkd on a shared hosting account at Godaddy

こ雲淡風輕ζ 提交于 2019-12-11 04:23:22
问题 I am trying to install beanstalkd (http://kr.github.io/beanstalkd/download.html) via the Linux Terminal on a shared hosting account at Godaddy . The previous link gives commands that should install beanstalkd on the server. I use SSH (with PuTTy) to access the Linux Terminal. I have practically tried all the commands in the previous link and am consistently obtaining errors like: sudo apt-get install beanstalkd error message: -bash: sudo: command not found brew install beanstalkd error