我已经安装了Mountain Lion (Mac OS X 10.8),现在gcc似乎不再可用了。我还安装了Xcode 4.4,这样就没有/Developer目录了。

我需要gcc的mac端口和红宝石宝石(有本机扩展)。

Xcode 4.4包含gcc吗?或者有安装gcc的方法吗?

虽然我发现了类似的问题,但我没有找到问题的答案

当我尝试重命名目录从FOO到FOO通过git mv FOO FOO我得到

fatal: renaming 'FOO' failed: Invalid argument

好的。我试试gitmv FOO foo2 && gitmv foo2 FOO

但当我尝试通过git commit提交时。我得到

# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
# foo
nothing added to commit but untracked files present (use "git add" to track)

当我通过git添加目录时,添加foo没有任何变化,git提交。又给了我同样的信息。

我做错了什么?我认为我正在使用区分大小写的系统(OSX),为什么我不能简单地重命名目录?

当我试图安装最新版本的compass (https://rubygems.org/gems/compass/versions/1.0.0.alpha.17)时,我得到以下错误。

ERROR:  Error installing compass:
ERROR: Failed to build gem native extension.

 ERROR:  Error installing compass:
  ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking for ffi.h... no
checking for ffi.h in /usr/local/include,/usr/include/ffi... yes
checking for ffi_call() in -lffi... yes
checking for ffi_prep_closure()... yes
checking for ffi_raw_call()... no
checking for rb_thread_blocking_region()... yes
checking for rb_thread_call_with_gvl()... yes
checking for rb_thread_call_without_gvl()... yes
checking for ffi_prep_cif_var()... no
creating extconf.h
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling AbstractMemory.c
compiling ArrayType.c
compiling Buffer.c
compiling Call.c
Call.c:303:5: warning: implicit declaration of function 'rb_thread_call_without_gvl' is invalid in C99 [-Wimplicit-function-declaration]
    rbffi_thread_blocking_region(call_blocking_function, data, (void *) -1, NULL);
    ^
./Thread.h:78:39: note: expanded from macro 'rbffi_thread_blocking_region'
# define rbffi_thread_blocking_region rb_thread_call_without_gvl
                                      ^
1 warning generated.
compiling ClosurePool.c
compiling DataConverter.c
DataConverter.c:43:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
1 warning generated.
compiling DynamicLibrary.c
compiling ffi.c
compiling Function.c
Function.c:479:33: warning: incompatible pointer types passing 'VALUE (void *)' to parameter of type 'void *(*)(void *)' [-Wincompatible-pointer-types]
        rb_thread_call_with_gvl(callback_with_gvl, &cb);
                                ^~~~~~~~~~~~~~~~~
Function.c:102:46: note: passing argument to parameter 'func' here
extern void *rb_thread_call_with_gvl(void *(*func)(void *), void *data1);
                                             ^
Function.c:563:9: warning: implicit declaration of function 'rb_thread_call_without_gvl' is invalid in C99 [-Wimplicit-function-declaration]
        rb_thread_call_without_gvl(async_cb_wait, &w, async_cb_stop, &w);
        ^
Function.c:738:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
3 warnings generated.
compiling FunctionInfo.c
compiling LastError.c
compiling LongDouble.c
compiling MappedType.c
compiling MemoryPointer.c
compiling MethodHandle.c
compiling Platform.c
compiling Pointer.c
compiling Struct.c
compiling StructByReference.c
compiling StructByValue.c
compiling StructLayout.c
compiling Thread.c
compiling Type.c
compiling Types.c
compiling Variadic.c
linking shared-object ffi_c.bundle
clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make: *** [ffi_c.bundle] Error 1

make failed, exit code 2

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/ffi-1.9.3 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-13/2.0.0/ffi-1.9.3/gem_make.out

这是怎么回事?如何正确安装最新的指南针?

我试图从mac终端设置一个python服务器。

我导航到文件夹位置使用:

python -m SimpleHTTPServer

但这给了我错误:

socket.error: [Errno 48] Address already in use

我以前使用相同的命令打开了一个连接 在我的电脑里的不同位置的一个不同的网站。

我试图从mac终端设置一个python服务器。

我导航到文件夹位置使用:

python -m SimpleHTTPServer

但这给了我错误:

socket.error: [Errno 48] Address already in use

我以前使用相同的命令打开了一个连接 在我的电脑里的不同位置的一个不同的网站。

因此,我在一段时间前安装了JDK 8的测试版,以查看一些示例。我想,到目前为止,在不同版本之间进行更改是很容易的。

用IntelliJ开发游戏。由于某些原因,IntelliJ正在使用8编译,即使:

我在首选项中将编译器设置为使用1.6 据说它通过外部构建使用SBT,但从命令行使用SBT是有效的 JAVA_HOME指向JDK 6。

如果我转到Java首选项页面,它确实显示安装了8个,但没有卸载它的选项,也看不到任何其他版本。

当我执行哪个java时,它会告诉我/usr/bin/java然后执行/usr/bin/java -version,它会返回1.6。

注意:只需稍作调整,就可以使用IntelliJ和JDK7,见这里。

尝试从首选项->设置->键盘映射它,但“键”组合框只有“向前删除”,但没有“删除”。另一方面,我的键盘上只有“删除”,没有“向前删除”!

除了偏好,还有别的方法吗?

我想在我的Mac上运行一些PHP,没有注释httpd.conf,激活网络共享,安装MySQL等。 我似乎找不到我的PHP文件,最重要的是,PHP.ini。

在我的旧机器上,它位于/usr/local/php5/lib 但是php5目录在/usr/local中不存在。

我需要取包裹吗?还是我找错地方了?

运行OS X 10.7.3, PHP 5.3.8, Apache/2.2.21

重新启动我的Mac,我得到了可怕的Postgres错误:

psql: could not connect to server: No such file or directory
 Is the server running locally and accepting
 connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

发生这种情况的原因是由于一个无关的问题,我的macbook完全死机了,我不得不使用电源按钮进行硬重启。重启后,由于这个错误,我无法启动Postgres。

今天我在macOS Sierra上升级了我的Intellij Idea,现在,当我在控制台运行应用程序时,我有这个错误:

objc[3648]:类JavaLaunchHelper在/Library/Java/JavaVirtualMachines/jdk1.8.0_121中实现。jdk/Contents/Home/bin/java (0x10d19c4c0)和/Library/ java /JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ libinstrucment .jdk/Contents/Home/jre/lib/ libinstrucment .jdk/Contents/Home/jre/lib/ libinstrucment .jdk (0x10d19c4c0)dylib (0 x10ea194e0)。两者中的一个将被使用。哪一个是没有定义的。