osx-lion

Screen: Cannot find terminfo entry for 'xterm-256color'

喜夏-厌秋 提交于 2019-11-28 22:06:41
问题 When I run screen on the remote host(running Linux), I obtain the following error: Cannot find terminfo entry for 'xterm-256color'. I am running terminal on Mac OSX Lion to access the remote host. I have googled to find out the solution to this problem and it appears that people suggest doing export TERM=xterm-color which doesn't work for me. Please help. 回答1: Find out which TERM is supported: ls /usr/share/terminfo/x this will give you a list of supported TERMs i.e. xterm xterm-xfree86 set

Trouble installing pg gem

霸气de小男生 提交于 2019-11-28 21:49:25
Trying to install the pg gem gives me errors. I'm using Ruby 1.9.3-p125 built using rbenv/ruby-build. I installed PostgreSQL using the one-click installer. I'm able to connect to the DB using pgAdmin. I'm running out of ideas. % gem install pg ~ Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension. /Users/sandropadin/.rbenv/versions/1.9.3-p125/bin/ruby extconf.rb checking for pg_config... yes Using config values from /usr/bin/pg_config checking for libpq-fe.h... yes checking for libpq/libpq-fs.h... yes checking for pg

Xcode asking username & password every time I compile to device

孤者浪人 提交于 2019-11-28 21:10:19
I use an admin account for the development. But every time I compile to a device Xcode is asking for admin username & password. I googled the issue. But none of the solutions worked. I tried the workarounds from this post, but it didn't work Authorize a non-admin developer in Xcode / Mac OS I also tried disabling and enabling the DevSecurityTools but it didn't work. I am using Xcode 4.3.1 installed on Mac OSX Lion 10.7.3. Is there any way to fix this? Brijesh Vadukia For solution go to Keychain Access, and in the top left navigation, move your Developer certificate from "System" to "Login".

How do I get “gem install” to work on OS X Lion with Ruby 1.8.7 without seg faulting?

南笙酒味 提交于 2019-11-28 20:53:44
I am novice rails/terminal user and just did a fresh Lion install + Xcode after that. Installed RVM but when I execute "gem install [any gem]" in terminal, I get this error: /Users/[my user]/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/timeout.rb:60: [BUG] Segmentation fault ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.0.0] Abort trap: 6 Can anyone help, please? PS. I am using - and in the project I am working on, I must use ruby v1.8.7. Make sure your rvm is up to date: rvm get latest And then run this: rvm uninstall 1.8.7 && CC=/usr/bin/gcc-4.2 rvm install 1.8.7 Basically you must tell

Bash piping in OSX prompts command not found, sometimes

僤鯓⒐⒋嵵緔 提交于 2019-11-28 20:45:54
In the OSX terminal : du -h | sort -nr -bash: sort: command not found which sort /usr/bin/sort The weird thing is: I tried reproducing the error and it seems to be totally random. My PATH echoed: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/usr/texbin:/Users/sytycs/.rvm/bin This only occurs when piping and happens with grep , more , less etc. Any idea what is causing this? That space is not a space. Erase and replace it. Michael Trojanek This likely happens because you use a keyboard layout with a non-US layout (happened to me too). On German layouts, the pipe

Failed to build gem native extension

落花浮王杯 提交于 2019-11-28 20:27:24
End result is I'm trying to get Ruby on Rails installed on my OS 10.7.3, but having various issues. Also, I have a freshly installed XCode 4.3 from the App Store. When I fire up the terminal, and enter: sudo gem install rails and it writes out: Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h Gem files will remain

401 Unauthorized error while logging in Manager-App of Tomcat

倖福魔咒の 提交于 2019-11-28 20:24:28
I am trying to log in to the Manager App in Tomcat 7.0.22 for Mac OS X 10.7. Here is the error I am getting: http://f.cl.ly/items/421q1K3f1i0X1H1M181v/so.tiff 401 Unauthorized You are not authorized to view this page. If you have not changed any configuration files, please examine the file conf/tomcat-users.xml in your installation. That file must contain the credentials to let you use this webapp. For example, to add the manager-gui role to a user named tomcat with a password of s3cret, add the following to the config file listed above. <role rolename="manager-gui"/> <user username="tomcat"

How to install Python 2.7 bindings for OpenCV using MacPorts

老子叫甜甜 提交于 2019-11-28 19:43:28
When trying to "import cv" in python I get: "ImportError: No module named cv". This question has appeared in many forms, but I haven't found the answer that helps. On my Mac OS X Lion, among many other ports, I have run: sudo port install python27 and sudo port install opencv +python27 Running: port select python I see: "python27 (active)" And running: port installed opencv I see: "opencv @2.3.1a_1+python27 (active)" What else should I check? Thanks. Pete I had this same problem. It looks like a (maybe?) bug with the OpenCV install script for 2.3.1a. It will not create the Python bindings

How to use correct ruby in vim ? How to modify $PATH in VIM?

不羁岁月 提交于 2019-11-28 19:43:08
I use plain Vim with ruby support on Lion (installed by gist ). I am using ruby with rbenv so my path looks like /users/me/.rbenv/shims:..... From within vim the path is :!echo $PATH > usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/fb/.rbenv/shims:.... Even I can create and modify an environment variable: :let $PATH = "/bar:/foo" :!echo $PATH > /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/foo:/bar paths remains starting with /usr/bin. So how can I access my ruby 1.9.3 in ~/.rbenv/shims instead the system ruby in /usr/bin ? This is a known problem introduced by

OS X Terminal text stacking on top of itself

孤街醉人 提交于 2019-11-28 19:39:33
问题 I'm encountering a strange issue in the Terminal app in Mac OS X Lion. When I enter in a long line of text that should wrap to the next line when it reaches the edge of the Terminal window, it continues to type on top of the text from the line above it. Here are some screenshots to help illustrate the issue: Before my text reaches the window edge: After the text reaches the window edge: I've also supplied screenshots of my text and window settings in case those might be helpful. Text settings