当我尝试在Lion上安装macports时,我收到以下消息:
MacPorts-2.0.0 can’t be installed on this computer.
Xcode is not installed, or was installed with UNIX Development (10.5+) or Command Line Support (10.4) deselected.
Run Code Online (Sandbox Code Playgroud)
即使我通过应用商店升级到Lion后安装了Xcode.
知道我需要做什么吗?
svn co "https://example.com/svn"
svn: OPTIONS of 'https://example.com/svn': SSL handshake failed: SSL error code -1/1/336032856 (https://example.com)
Run Code Online (Sandbox Code Playgroud)
它适用于Windows和Mac OX10.6,但在Mac OSX10.7上失败.
我尝试使用默认的/ usr/bin/svn(版本1.6.16(r1073529)),以及fink/sw/bin/svn(版本1.6.17(r1128011))我安装了所有OSX10.7更新.
可能是什么问题?
ps:我使用私有svn存储库; " https://example.com/svn "只是这篇文章的一个例子.
有没有办法在Javascript中检测操作系统是否是OS X Lion?
干杯!
我刚买了一台iMac,想开始编程.但我不能配置Tomcat和Netbeans一起工作.我安装了Tomcat,它似乎正在运行.但是当我尝试构建一个Web应用程序时,netbeans会一直询问我的用户名和密码.我已经配置了user.xml但它不能正常工作.
任何人都可以提示吗?
干杯
我正在尝试使用Microsoft Outlook 2011 for mac创建一个新的传出消息AppleScript.以下示例适用于10.6.8:
tell application "Microsoft Outlook"
set newMessage to make new outgoing message with properties {subject:"Hooray for automation"}
make new recipient at newMessage with properties {email address:{name:"Jim Shank", address:"jim.shank@example.com"}}
open newMessage
end tell
Run Code Online (Sandbox Code Playgroud)
在Lion上我收到以下错误:
Microsoft Outlook got an error: Can’t make class outgoing message.
Run Code Online (Sandbox Code Playgroud)
有人知道那里出了什么问题吗?
我正在使用离线Outlook.
我正在尝试在Rails项目中使用Paperclip gem,因此遵循文档并首先使用Homebrew配方安装Imagemagick.
我在我的模型中添加了我的附件
has_attached_file :screenshot
Run Code Online (Sandbox Code Playgroud)
这工作正常,文件上传按预期运行
然后我想为此添加缩略图,所以再次按照文档添加到模型中
has_attached_file :screenshot,
:styles => { :medium => "300x300>",
:thumb => "100x100>" }
Run Code Online (Sandbox Code Playgroud)
此时上传不再有效
我查看了开发日志并注意到了这一点:
[32mCommand[0m :: identify -format %wx%h '/var/folders/ky/r5gsdhbn6yggbglsg727cc900000gn/T/stream20120302-60051-eh17n7.png[0]'
[paperclip] An error was received while processing: #<Paperclip::NotIdentifiedByImageMagickError:
/var/folders/ky/r5gsdhbn6yggbglsg727cc900000gn/T/stream20120302-60051-eh17n7.png is not recognized by the 'identify' command.>
Run Code Online (Sandbox Code Playgroud)
在一些谷歌搜索之后,我认为将默认路径设置为环境变量可能是个问题
Paperclip.options[:command_path] = "/usr/local/bin/"
Run Code Online (Sandbox Code Playgroud)
但我检查了这是正确的使用
which identify
Run Code Online (Sandbox Code Playgroud)
它回归了这条道路
/usr/local/bin/identify
Run Code Online (Sandbox Code Playgroud)
正如所料
然后我尝试从命令行运行识别作为测试并得到此错误
dyld: Library not loaded: /usr/X11/lib/libfreetype.6.dylib
Referenced from: /usr/local/bin/identify
Reason: Incompatible library version: identify requires version 14.0.0 or later, but libfreetype.6.dylib provides version 13.0.0
Trace/BPT trap: 5 …Run Code Online (Sandbox Code Playgroud) 从OS X 10.7.3开始,我的文本编辑器就在它接触的任何文件上设置"隔离"位.
我的文本编辑器设计用于处理shell脚本,如果设置了隔离位,则无法从命令行执行shell脚本,直到在Finder中双击它并执行"此应用程序已从Internet下载"警报(或删除隔离位xattr).
例如,我刚在我的应用程序中创建了一个"hello world"脚本,它已被隔离,无法执行:
$ xattr -l foo
com.apple.quarantine: 0006;4f51dd2f;Dux;
$ chmod +x foo
$ ./foo
-bash: ./foo: Operation not permitted
Run Code Online (Sandbox Code Playgroud)
如果我删除隔离位,脚本将起作用:
$ xattr -d com.apple.quarantine foo
$ ./foo
hello world
Run Code Online (Sandbox Code Playgroud)
根据一些论坛帖子,TextEdit还在它创建的任何shell脚本上设置隔离位.
我正在使用一个简单的NSDocument子类来创建文件:
- (NSData *)dataOfType:(NSString *)typeName error:(NSError **)outError
{
return [self.textStorage.string dataUsingEncoding:self.stringEncoding];
}
Run Code Online (Sandbox Code Playgroud)
如何从我的应用中创建的文件中删除隔离位?其他文本编辑器(如TextWrangler)不设置隔离位.
UPDATE
更多信息,这只在创建"脚本应用程序"文件时发生,该文件是从perl脚本到html的任何内容.
它只发生在我的应用程序是沙盒时.禁用沙盒可以解决问题,但这不是一个长期解决方案.
我已经向Radar提交了一个错误,看起来似乎没什么可做的,只是等待/希望大道能够修复它.
在OS X 10.7.3(Lion)中运行Mac应用程序时出现以下错误:
Dyld Error Message:
Symbol not found: _OBJC_CLASS_$_NSObject
Referenced from: /Users/USER/Desktop/MyApp.app/Contents/MacOS/../Frameworks/SBJson.framework/Versions/A/SBJson
Expected in: /usr/lib/libobjc.A.dylib
Run Code Online (Sandbox Code Playgroud)
该应用程序在OS X 10.8.1(Mountain Lion)上运行正常,并在Mountain Lion中使用XCode 4.4构建.SBJson是一个私有框架.
可能是什么问题?
我在这里非常接近,我想我只需要创建一个符号链接,但我不确定如何(以及为什么需要).
我使用以下命令下载并安装了git:
brew install git
Run Code Online (Sandbox Code Playgroud)
回应是:
git-1.7.12 already installed, it's just not linked
Run Code Online (Sandbox Code Playgroud)
我该怎么做呢?
当我跑:
which git
>/usr/bin/git
Run Code Online (Sandbox Code Playgroud)
当我跑:
git --version
>git version 1.7.4.4
Run Code Online (Sandbox Code Playgroud)
我的路径很好:
export PATH="/usr/local/bin:$PATH"
Run Code Online (Sandbox Code Playgroud)
同样,我真正需要知道的是如何设置符号链接.
我试图通过自制软件在我的macbook pro上设置八度音程.我的自制程序已更新,我的XCode及其命令行工具也是如此.
这是我得到的错误:
Undefined symbols for architecture x86_64:
"_append_history", referenced from:
_octave_append_history in liboctave_la-oct-rl-hist.o
(maybe you meant: _octave_append_history)
"_history_list", referenced from:
_octave_history_list in liboctave_la-oct-rl-hist.o
(maybe you meant: _octave_history_list)
"_read_history_range", referenced from:
_octave_read_history_range in liboctave_la-oct-rl-hist.o
(maybe you meant: _octave_read_history_range)
"_rl_basic_quote_characters", referenced from:
_octave_rl_set_basic_quote_characters in liboctave_la-oct-rl-edit.o
"_rl_char_is_quoted_p", referenced from:
_octave_rl_set_char_is_quoted_function in liboctave_la-oct-rl-edit.o
"_rl_clear_screen", referenced from:
_octave_rl_clear_screen in liboctave_la-oct-rl-edit.o
(maybe you meant: _octave_rl_clear_screen)
"_rl_filename_dequoting_function", referenced from:
_octave_rl_set_dequoting_function in liboctave_la-oct-rl-edit.o
"_rl_filename_quote_characters", referenced from:
_octave_rl_set_filename_quote_characters in liboctave_la-oct-rl-edit.o
"_rl_filename_quoting_desired", referenced from:
_octave_rl_filename_quoting_desired in liboctave_la-oct-rl-edit.o
(maybe you …Run Code Online (Sandbox Code Playgroud) osx-lion ×10
macos ×4
homebrew ×3
cocoa ×2
applescript ×1
freetype ×1
git ×1
imagemagick ×1
java ×1
javascript ×1
macports ×1
netbeans ×1
objective-c ×1
octave ×1
outlook ×1
paperclip ×1
sendmail ×1
ssl ×1
svn ×1
tomcat ×1
user-agent ×1
xcode ×1
xcode4 ×1