标签: osx-yosemite

安装最新版OS X(Yosemite或El Capitan)后缺少`pg_tblspc`

我在OS X中使用自制程序中的postgres,但是当我重新启动系统时,有时postgres在重新启动后没有启动,所以我手动尝试启动它postgres -D /usr/local/var/postgres,但随后发生了以下消息的错误:FATAL: could not open directory "pg_tblspc": No such file or directory.

它最后一次发生时,我无法将其恢复到原始状态,所以我决定卸载整个postgres系统,然后重新安装它并创建用户,表格,数据集等等......真是太恶心了,但是它经常发生在我的系统上,比如几个月就会发生一次.

那为什么它pg_tblspc经常丢失文件?我有什么办法可以避免丢失文件吗?

我没有将我的自制软件和postgres升级到最新版本(即我一直在使用相同的版本).另外,我在postgres数据库上做的所有事情都是删除表并每天填充新数据.我没有更改用户,密码等...

编辑(mbannert):我觉得有必要添加这个,因为这个问题对谷歌来说是最受欢迎的,而且很多症状都不同.Homebrewers可能会遇到此错误消息:

No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Run Code Online (Sandbox Code Playgroud)

所以,如果你刚刚在优胜美地升级之后经历过这个,那么现在你已经开始阅读这个帖子了.

postgresql macos homebrew osx-yosemite

461
推荐指数
3
解决办法
5万
查看次数

在OS X 10.9+上安装libv8 gem

我正在尝试安装libv8 3.16.14.3,但使用最新的稳定rvm和ruby-1.9.3-p125在OSX Mavericks上出错.

这是运行命令'gem install libv8'的输出:

~/src(branch:master) » gem install libv8
Fetching: libv8-3.16.14.3.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing therubyracer:
  ERROR: Failed to build gem native extension.

    /Users/me/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb
creating Makefile
Compiling v8 for x64
Using python 2.7.5
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
Using compiler: g++
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Unable to find a compiler officially supported …
Run Code Online (Sandbox Code Playgroud)

gem rubygems libv8 osx-mavericks osx-yosemite

203
推荐指数
9
解决办法
8万
查看次数

通过launchd.conf设置环境变量不再适用于OS X Yosemite/El Capitan/macOS Sierra/Mojave?

它看起来好像launchd.conf不再加载我的环境变量了.还有其他人注意到了吗?

还有另一种永久设置环境变量的解决方案吗?

environment-variables osx-yosemite osx-elcapitan

185
推荐指数
5
解决办法
11万
查看次数

pip install:请检查该目录的权限和所有者

在安装pip和python时,我遇到了一个说:

目录'/ Users/Parthenon/Library/Logs/pi'或其父目录不归当前用户所有,并且已禁用调试日志.请检查该目录的权限和所有者.如果用sudo执行pip,你可能需要-H标志.

因为我现在必须安装使用sudo.

我已经在我的Mac上安装了python和一些库,我正在运行Yosemite.我最近不得不做一个干净的擦拭,然后重新安装操作系统.现在我收到了这个提示,我无法弄清楚如何改变它

在我的命令行Parthenon$现在之前它是Philips-MBP:~ Parthenon$

我是这台电脑的唯一所有者,这是唯一的帐户.这似乎是一个问题,当升级到python 3.4,似乎没有什么在正确的地方,virtualenv不会去我想象的地方,等等.

python sudo pip osx-yosemite

153
推荐指数
3
解决办法
17万
查看次数

如何在OSX上编辑$ PATH(.bash_profile)?

我正在尝试编辑PATH的一个条目,因为我做错了.

我使用的是Mac OS X 10.10.3

我试过了:

> touch ~/.bash_profile; open ~/.bash_profile
Run Code Online (Sandbox Code Playgroud)

但文件编辑器打开时没有任何内容.

我的问题:

我正在尝试将ANDROID_HOME安装到我的PATH

我把它拼错了,但是当我关闭终端然后回去时它已经不见了,所以我再试一次:

export ANDROID_HOME=/<installation location>/android-sdk-macosx
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
Run Code Online (Sandbox Code Playgroud)

这次,我正确输入了命令但是,当我关闭终端时,我的设置再次消失.

如何执行我想要的设置?

如果我要编辑bash.profile,我该如何输入上面的代码?

谢谢!

macos bash terminal path osx-yosemite

151
推荐指数
8
解决办法
48万
查看次数

如何让Ruby/Homebrew/RVM在Yosemite上运行?

安装Yosemite后,我无法运行brew或ruby.

我在brew更新时收到此错误:

/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/brew: line 23: /usr/local/Library/brew.rb: Undefined error: 0
Run Code Online (Sandbox Code Playgroud)

在irb上收到此错误:

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:in mkdir': Permission denied - /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14 (Errno::EACCES) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:infu_mkdir'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:219:in block (2 levels) in mkdir_p' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:217:inreverse_each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:217:in block in mkdir_p' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:203:ineach'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:203:in mkdir_p' from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:210:inwrite_gem_make_out'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:132:in build_error' from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:171:inrescue in build_extension'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:156:in build_extension' from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:198:inblock in build_extensions'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:195:in each' from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:195:inbuild_extensions'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1436:in block in build_extensions' from /Library/Ruby/Site/2.0.0/rubygems/user_interaction.rb:45:inuse_ui'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1434:in build_extensions' from …
Run Code Online (Sandbox Code Playgroud)

ruby homebrew ruby-on-rails osx-yosemite

118
推荐指数
5
解决办法
5万
查看次数

优胜美地和Valgrind

你能告诉我如何在优胜美地上安装valgrind吗?当我尝试安装它时,我得到"检查内核版本...不支持(14.0.0)configure:错误:Valgrind适用于Darwin 10.x,11.x,12.x和13.x(Mac OS X) 10.6/7/8/9)"

没有官方路径或更新,我没有找到任何东西(除了http://comments.gmane.org/gmane.comp.kde.devel.bugs/1553705,但他们没有解决这个问题).

macos valgrind osx-yosemite

111
推荐指数
6
解决办法
4万
查看次数

Swift Xcode索引冻结或慢速

也许这只是我遇到这样一个恼人的"功能":

从Xcode 6.0.1升级到Xcode 6.1后,情况发生了变化.Xcode 6.1永远索引项目或编译源文件.该项目不是一个巨大的项目.它只包含工作区中的一堆Swift文件和AWS SDK 2.0 Cocoapods.我不认为它应该阻止整个索引和编译顺利.我尝试了一些aws-sdk-ios-samples,只是为了看看Xcode 6.1如何在它们上工作,它最终在同一个永远等待.

到目前为止我尝试了哪些解决方案:

  1. 在管理器中删除"派生数据",然后重新打开和工作区.(未修复)
  2. .xcodeproj文件中的"显示包内容"并删除.xcworkspace,如(Xcode 4 - 性能缓慢)

不幸的是,他们都没有工作.

PS也许我应该尝试重新创建项目?我的电脑设置:MacBook Pro(Retina,13英寸,2014年中),内存8 GB 1600 MHz DDR3,优胜美地.(我认为这足以运行这个小项目.)

indexing swift osx-yosemite aws-sdk xcode6.1

99
推荐指数
7
解决办法
4万
查看次数

Apache localhost/~username /不工作

更新:以下答案也适用于El Capitan.

对于刚刚开始的人,下面提到的文件位于/ etc/apache2下

对于下面的答案,还需要更改的文件是/etc/apache2/extra/httpd-userdir.conf

原文:

所以我最近刚升级到Mac OS X Yosemite,我需要再次设置我的Apache.我在/ user/kevin下创建一个文件夹"Sites",并将文件权限更改为777,并像以前一样取消注释/etc/apache2/httpd.conf中的php5module行.

localhost正在工作,但localhost/~kevin /给了我"在这台服务器上找不到请求的URL/~kevin /".

这是我的httpd.conf文件,以防任何人需要查看它.如果有人出错,我将不胜感激,如果有人可以发布他们的httpd.conf文件,那么我可以恢复它并再次执行.

#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see 
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as …
Run Code Online (Sandbox Code Playgroud)

apache macos localhost osx-yosemite osx-elcapitan

95
推荐指数
4
解决办法
9万
查看次数

在git pull上的OSX 10.10优胜美地测试版:git-sh-setup:没有这样的文件或目录

升级到OSX 10.10 Yosemite Beta后,正在运行git pull返回以下错误:

/ Library/Developer/CommandLineTools/usr/libexec/git-core/git-pull:第11行:git-sh-setup:没有这样的文件或目录

我检查了引用的git-core目录,git-sh-setup.sh就在那里.

其他git命令正如预期的那样工作

git zsh osx-yosemite

90
推荐指数
5
解决办法
2万
查看次数