osx-lion

Running Eclipse on Mac OS X Lion

二次信任 提交于 2019-11-30 04:50:00
Eclipse runs fine, but I lost the error/warning/todo vertical bar on the right (right next to the new scroll bar). Does anyone has the same problem? Thanks! Same, ahhhh how do you fix this, SOOO annoying Figured it out, if you go to system preferences > general > click the "when scrolling" button, to only show the scroll bar when scrolling it fixes it. Mine was previously on "always". I restarted eclipse and it shows the errors/warning message etc now. Now that the Eclipse team fixed the issue, you can also go to "Help" > "Check for updates" and install the platform updates. It fixed the issue

glewInit() fails on macOS

旧城冷巷雨未停 提交于 2019-11-30 04:48:11
问题 So I have a piece of code that runs fine on ubuntu machine, but fails to do so on xcode or via terminal. I'm trying to run it on xcode, but it fails on main with: "Use of undeclared identifier glewInit; did you mean glutInit?" "Too few argument to function call, expected 2, have 0" The code is lengthy is been written by my professor and it runs on ubuntus. But with the errors, I'm thinking that the reasons is...well, underclared identifier, include is missing. So, after googling I figured out

Cannot compile ruby 1.9.3

人走茶凉 提交于 2019-11-30 01:46:51
When I run rvm install 1.9.3 --with-gcc=clang on Mac OSX Lion, ruby does not compile, and I get the following error in (.rvm/log/ruby-1.9.3-p374/make.log) [2013-01-29 16:31:05] make CC = clang LD = ld LDSHARED = clang -dynamic -bundle CFLAGS = -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -pipe XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT

C - Undefined symbols for architecture x86_64 when compiling on Mac OSX Lion

不羁岁月 提交于 2019-11-30 01:28:18
问题 I'm getting some problems on compiling a very very simple name.c file on Mac OSX Lion. Now, I started following Harvard CS50 course on cs50.net. I'm not totally new to programming but I was curious on how this course has been taught. This is the source of name.c: #include <stdio.h> #include <cs50.h> int main(void) { printf("State your name:\n"); string name = GetString(); printf("O hai, %s!\n", name); return 0; } As you can see, it requires this library: https://manual.cs50.net/CS50_Library.

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

末鹿安然 提交于 2019-11-30 01:21:48
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. 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 the environment variable: export TERM=xterm-xfree86 and run screen: TERMINFO='/usr/share/terminfo/' screen In

How to know if a NSWindow is fullscreen in Mac OS X Lion?

北城以北 提交于 2019-11-30 01:16:47
问题 I guess I should check if [NSApplication presentationOptions] contains NSFullScreenModeApplicationPresentationOptions , but how do I achieve that? EDIT: using [NSApplication presentationOptions] doesn't work as in my document-based app there might be some documents in fullscreen and others not. I'm now looking for another solution. I'm wondering why there isn't a property called [NSWindow isFullscreen] or something like that. 回答1: I was just looking for a solution myself and based on Matthieu

Can I force node.js require to be case sensitive?

拈花ヽ惹草 提交于 2019-11-30 00:18:58
问题 Since my Mac has a case-insensitive filesystem case related typos will not be caught when running tests locally, however they fail on the build server which is running Linux. For example: require('./mymodule') will find ./myModule.js when running on Lion, but not on Linux. Since I'd like to have the tests fail locally as well in order to not break the build on the server, I'm looking for a way to make node.js require more strict in that it throws an error if it the filename is not exact (i.e.

MAMP: How to upgrade PEAR

南楼画角 提交于 2019-11-30 00:11:56
When trying to upgrade MAMP pear the following error is raised: Notice: unserialize(): Error at offset 276 of 1133 bytes in Config.php on line 1050 ERROR: The default config file is not a valid config file or is corrupted. Some suggestions how to fix this? Steps to reproduce: Installed MAMP (version 2.0.5) cd /Applications/MAMP/bin/php/php5.3.6/bin sudo ./pear upgrade pear above mentioned error is thrown Update (1): Based on answer 8375349/420953 I tried 2 possibilities to fix this A: delete pear.conf rm /Applications/MAMP/bin/php/php5.3.6/conf/pear.conf B: edit pear.conf change "php_dir";s:44

How to build pHash on MacOSX Lion (using latest ffmpeg-devel)

我是研究僧i 提交于 2019-11-29 23:27:49
问题 Building pHash 0.9.4 on OSX can turn out to be tricky. For those of you who've run into issues, my somewhat lengthy answer below might help. 回答1: Make sure you've got macports fully updated and working. This means a recent Xcode, and inside Xcode preferences->downloads->components install Command-Line Tools ! $ sudo port selfupdate # if you've had previous build issues: $ sudo port clean --all # get pHash wget http://www.phash.org/releases/pHash-0.9.4.tar.gz tar zxvf pHash-0.9.4.tar.gz cd

OS X Eclipse C++ Launch Failed - Binary Not Found

隐身守侯 提交于 2019-11-29 23:02:50
I am quite troubled as this shouldn't be causing me such a headache. I've downloaded the most recent Eclipse Indigo and all CDT C++ plugins for MAC OS X 10.7.1/ Upon restarting after installing the above CDT plugins, I've developed a simple 'hello world' c++ application and have tried running the application, "Launch failed. Binary not found." error message. I've read multiple fixes but none have worked. I tried adding the -arch i386 flag to the linker and compiler commands, still no luck. Has anyone successfully gotten Eclipse C++ running on 10.7.1?????? This blows my mind. I can simply write