我试图在OS X Lion上使用IntelliJ IDEA 10.5.1进行简单的maven构建,并收到以下错误:
运行my-app [package]时出错:找不到有效的Maven安装.在配置对话框中设置主目录或在系统上设置M2_HOME环境变量.
我已将M2_HOME设置为以下内容,但我仍然遇到问题.是的,我确实重启了IntelliJ.
$ echo $M2_HOME
/usr/share/maven
Run Code Online (Sandbox Code Playgroud)
然后我手动在项目的IntelliJ的Maven设置中输入maven的路径.这不是我想要为每个项目做的事情,所以有什么我想知道如何让IntelliJ知道我的maven家在哪里?
我跑的时候
screen
Run Code Online (Sandbox Code Playgroud)
在远程主机(运行Linux)上,我得到以下错误:
Cannot find terminfo entry for 'xterm-256color'.
Run Code Online (Sandbox Code Playgroud)
我在Mac OSX Lion上运行终端以访问远程主机.我已经谷歌搜索找出这个问题的解决方案,似乎人们建议做
export TERM=xterm-color
Run Code Online (Sandbox Code Playgroud)
这对我不起作用.
请帮忙.
尝试使用convert(1)时,我收到以下错误:
dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/convert
Reason: image not found
Trace/BPT trap: 5
Run Code Online (Sandbox Code Playgroud)
知道如何解决它吗?
我将我的OSX从Snow Leopard升级到Lion,我下载了Xcode 4.3.1现在当我尝试验证并发布我的应用时,我得到了第一个截图.如果我点击下载标识符按钮,我会得到第二个屏幕截图.
有什么建议?


我正在尝试将一个登录窗口显示为来自我的MainWindow的工作表,但每当我尝试实现AppKit方法时,总会出现错误,因为各种无法区分的原因.
没有任何在线指南有效,当我将他们的代码/改编的课程应用到我自己的项目时,他们永远不会工作.
大多数指南都过时了,包括Apple文档.而且它们似乎都与自动参考计数兼容.或Xcode 4接口.
有人能够在完整的指南中为我详细说明,以便在MainWindow上按下按钮后显示表单的最简单方法.
如果需要,请随时询问更多信息.
这可能非常简单,但我正在使用Emacs(22.1.1),我无法使用Control- 将其粘贴到剪贴板中Y.
我已经完全绝望了 - 我花了一整天的时间尝试将rmagickgem 安装到Mac OS X Lion,但实际上这是一个悲剧.我在Google上看到了很多类似的主题,但没有任何帮助我.
我想完全卸载imagemagick通过brew并重新安装(这是运作良好),然后安装rmagick,但每次当我尝试安装这种宝石的时候,我收到此错误:
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/Users/adam/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
extconf.rb:128: Use RbConfig instead of obsolete and deprecated Config.
checking for clang... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.4.9... yes
checking for HDRI disabled version of ImageMagick... yes
checking for stdint.h... yes …Run Code Online (Sandbox Code Playgroud) sudo gem install nokogiri
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/Users/sajeev86/.rvm/rubies/ruby-1.8.7-p352/bin/ruby extconf.rb
checking for libxml/parser.h... no
-----
libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Run Code Online (Sandbox Code Playgroud)
我无法安装Nokogiri.这对我来说已经有一段时间了.我也通过MacPorts和Homebrew安装了依赖项.
我有一种感觉,正确的目录没有彼此指向?但不知道如何解决.
我想在我的终端上运行mysql客户端.我已经安装了最新的mysql gem.
? ~ git:(master) ? ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
? ~ git:(master) ? rails -v
Rails 2.3.14
? ~ git:(master) ? which mysql
mysql: aliased to nocorrect mysql
? ~ git:(master) ? which ruby
/usr/bin/ruby
? ~ git:(master) ? which rails
/usr/bin/rails
? ~ git:(master) ? gem list
*** LOCAL GEMS ***
actionmailer (2.3.14)
actionpack (2.3.14)
activerecord (2.3.14)
activeresource (2.3.14)
activesupport (2.3.14)
builder (2.1.2)
bundler (1.0.21)
capistrano (2.9.0)
capybara (0.3.9)
cgi_multipart_eof_fix (2.5.0)
childprocess (0.2.2)
columnize …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用Hadoop的伪分布式操作示例(http://hadoop.apache.org/common/docs/stable/single_node_setup.html)来处理OS X Lion,但是在使用ssh时无法正常工作密码短语.
说明如下:
设置passphraseless ssh
现在检查您是否可以在没有密码的情况下ssh到localhost:$ ssh localhost
我被连接拒绝了:
archos:hadoop-0.20.203.0 travis$ ssh localhost
ssh: connect to host localhost port 22: Connection refused
Run Code Online (Sandbox Code Playgroud)
如果在没有密码短语的情况下无法ssh到localhost,请执行以下命令:
$ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
Run Code Online (Sandbox Code Playgroud)
在这一步之后,我仍然拒绝连接.有任何想法吗???
osx-lion ×10
macos ×3
terminal ×2
cocoa ×1
cocoa-sheet ×1
emacs ×1
emacs22 ×1
homebrew ×1
imagemagick ×1
ios5 ×1
maven ×1
mysql ×1
mysql.sock ×1
nokogiri ×1
objective-c ×1
passphrase ×1
paste ×1
rmagick ×1
ruby ×1
rvm ×1
ssh ×1
xcode4 ×1
xcode4.2 ×1