当有人说"编辑您的.plist文件"或"您的.profile"或".bash_profile"等时,这只会让我感到困惑.我不知道这些文件在哪里,如果我必须这样做,如何创建它们等,以及为什么似乎有这么多不同的(为什么?他们做不同的事情?)
那么,有人可以非常耐心地向以前的Windows用户解释(想要更加熟悉令人愉快的,如果最初有些令人困惑的OS X世界)如何一步一步地做到这一点?
我需要为GUI应用程序和命令行应用程序设置变量,目前它是需要变量的ant脚本,但很可能还有其他需求.
请注意我也有狮子,因为谷歌的许多答案似乎已经过时了......
另请注意,我几乎没有使用终端的经验.我愿意学习,但请为新手解释...
关于这个问题的大多数问题是由于缺少Xcode; 我安装了Xcode 4.2.
安装尝试:
rvm install 1.9.3
Installing Ruby from source to: /Users/jamie/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)...
ruby-1.9.3-p0 - #fetching
ruby-1.9.3-p0 - #extracted to /Users/jamie/.rvm/src/ruby-1.9.3-p0 (already extracted)
Fetching yaml-0.1.4.tar.gz to /Users/jamie/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/jamie/.rvm/src
Configuring yaml in /Users/jamie/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/jamie/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/jamie/.rvm/usr
ruby-1.9.3-p0 - #configuring
ERROR: Error running ' ./configure --prefix=/Users/jamie/.rvm/rubies/ruby-1.9.3-p0 --enable-shared --disable-install-doc --with-libyaml-dir=/Users/jamie/.rvm/usr ', please read /Users/jamie/.rvm/log/ruby-1.9.3-p0/configure.log
ERROR: There has been an error while running configure. Halting the installation. …Run Code Online (Sandbox Code Playgroud) 在我运行Snow Leopard的旧Mac上,我可以将"ios"输入聚光灯下,它会自动启动iPhone/iPad模拟器.
我必须得到一台运行Lion的新机器.我已经为Lion安装了Xcode,我已经从首选项面板安装了开发人员工具选项.
但是"ios"选项不再存在:(现在唯一的办法似乎是运行Xcode,创建一个空项目,然后使用run选项启动模拟器.
我搜索并搜索了intertubes和facewebs,但没有任何帮助.
有谁知道如何在Lion上只运行模拟器?
更新:这是对@ike_love线程的回应.答案无法保证在所有Yosemite机器上工作.
刚刚将我的计算机升级到Mac OS X Lion并转到终端并键入"make",但它说:-bash:make:command not found
"make"命令在哪里?
我最近升级到OSX 10.7,此时我的rails安装在尝试连接到psql服务器时完全被堵塞了.当我从命令行使用时
psql -U postgres
Run Code Online (Sandbox Code Playgroud)
它工作得很好,但是当我尝试使用相同的用户名和密码运行rails服务器或控制台时,我收到此错误
...activerecord-3.0.9/lib/active_record/connection_adapters/postgresql_adapter.rb:950:in `initialize': could not connect to server: Permission denied (PGError)
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
Run Code Online (Sandbox Code Playgroud)
任何可能发生的想法都会非常有用!谢谢!
我正在尝试在OSX Lion上安装Imagemagick,但有些东西没有按预期工作.
-> brew install imagemagick
/usr/local/git/bin/git
==> Cloning https://github.com/adamv/ImageMagick.git
Cloning into /Users/klebershimabuku/Library/Caches/Homebrew/imagemagick--git...
fatal: https://github.com/adamv/ImageMagick.git/info/refs not found: did you run git update-server-info on the server?
Error: Failure while executing: git clone --depth 1 https://github.com/adamv/ImageMagick.git /Users/kleber/Library/Caches/Homebrew/imagemagick--git
Run Code Online (Sandbox Code Playgroud)
布鲁医生说:
-> brew doctor
We couldn't detect gcc 4.0.x. Some formulae require this compiler.
Some "config" scripts were found in your path, but not in system or Homebrew folders.
`./configure` scripts often look for *-config scripts to determine if software packagesare installed, and what additional …Run Code Online (Sandbox Code Playgroud) 每当我使用Cmd+ 在终端中打开一个新选项卡时T,它会在与前一个选项卡相同的目录中打开bash.当我在~目录中时,这工作正常,但如果我在其他任何地方,我会收到错误加载.bashrc
Last login: Sat Oct 15 21:10:00 on ttys002
-bash: .bashrc: No such file or directory
Jakub-Arnolds-MacBook-Pro:projects darth$
Run Code Online (Sandbox Code Playgroud)
它看起来像.bashrc通过相对而非绝对路径加载,因为如果我这样做source ~/.bashrc,一切都很顺利.

我认为这是与OS X Lion相关的问题,因为在从Snow Leopard升级之前,我没有遇到同样的问题.但这可能是由终端总是打开引起的~,我不记得它是否试图打开同一个目录.
但问题仍然是一样的,如何~/.bashrc通过绝对路径进行终端加载,而不是相对?
这个问题可能看起来像是一个副本:如何在我的Mac上卸载postgresql(运行Snow Leopard)但是,有两个主要的区别.我正在运行Lion,我正在尝试卸载PostgreSQL 9.0.4.我查看了最后一个问题及其引用的链接,但是当我运行此命令时,我没有找到名为"uninstall-postgresql"的文件:
sudo find / -name "*uninstall-*"
Run Code Online (Sandbox Code Playgroud)
所以,我认为这意味着9.0.4的卸载过程与8.x的卸载过程不同.
我在不同的地方看到了几个描述手动卸载方法的帖子,但同样地,我的机器上没有引用的一些目录/文件.
我们将非常感谢您提供的任何帮助或指导.
仅供参考,这是用于从雪豹中卸载postgres的另一张海报的链接.当我试图逐步执行这些命令时,大多数命令都被"未找到命令"的变体所阻塞.
更新:
除此之外brew uninstall postgres,我应该手动删除以下任何文件/目录吗?请记住,我想完全擦除平板,没有数据文件/数据库表或任何东西.
> sudo find / -name "*postgres*"
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
/Library/Ruby/Gems/1.8/doc/activerecord-3.1.1/rdoc/lib/active_record/connection_adapters/postgresql_adapter_rb.html
/Library/Ruby/Gems/1.8/doc/activerecord-3.1.1/ri/ActiveRecord/ConnectionAdapters/PostgreSQLAdapter/postgresql_version-i.ri
/Library/Ruby/Gems/1.8/doc/arel-2.2.1/rdoc/lib/arel/visitors/postgresql_rb.html
/Library/Ruby/Gems/1.8/gems/activerecord-3.1.1/lib/active_record/connection_adapters/postgresql_adapter.rb
/Library/Ruby/Gems/1.8/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
/Library/Ruby/Gems/1.8/gems/arel-2.2.1/test/visitors/test_postgres.rb
/Library/Ruby/Gems/1.8/gems/railties-3.1.1/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml
/Library/Ruby/Gems/1.8/gems/railties-3.1.1/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml
/Library/WebServer/Documents/postgresql
/Library/WebServer/Documents/postgresql/html/app-postgres.html
/Library/WebServer/Documents/postgresql/html/postgres-user.html
/private/etc/apache2/users/postgres.conf
/private/var/db/dslocal/nodes/Default/groups/_postgres.plist
/private/var/db/dslocal/nodes/Default/sharepoints/postgres's Public Folder.plist
/private/var/db/dslocal/nodes/Default/users/_postgres.plist
/private/var/db/dslocal/nodes/Default/users/postgres.plist
/System/Library/DirectoryServices/DefaultLocalDB/Default/groups/_postgres.plist
/System/Library/DirectoryServices/DefaultLocalDB/Default/users/_postgres.plist
/Users/postgres
/Users/remcat/dev/working/startwire/vendor/plugins/foreign_keys/lib/foreign_keys/postgresql_adapter.rb
/Users/remcat/Library/Application Support/CrashReporter/postgres_DCCEF98F-4602-5FF7-964F-5E717AC007B4.plist
/Users/remcat/Library/Caches/Homebrew/postgresql-9.0.4.tar.bz2
/Users/remcat/Library/Caches/Metadata/Safari/History/http:%2F%2Fwww.postgresql.org%2Fdocs%2Fcurrent%2Fstatic%2Findex.html.webhistory
/Users/remcat/Library/Logs/CrashReporter/postgres_2011-11-06-194716_Ramys-MacBook-Pro.crash
/Users/remcat/Library/Logs/CrashReporter/postgres_2011-11-06-194742_Ramys-MacBook-Pro.crash
/Users/remcat/Library/Logs/CrashReporter/postgres_2011-11-06-194757_Ramys-MacBook-Pro.crash
/Users/remcat/Library/Logs/CrashReporter/postgres_2011-11-06-194958_Ramys-MacBook-Pro.crash
/Users/remcat/Library/Logs/CrashReporter/postgres_2011-11-06-203352_Ramys-MacBook-Pro.crash
/Users/remcat/Library/Logs/CrashReporter/postgres_2011-11-06-203359_Ramys-MacBook-Pro.crash
/Users/remcat/Library/Logs/DiagnosticReports/.postgres_2011-11-06-194716_Ramys-MacBook-Pro.crash.plist
/Users/remcat/Library/Logs/DiagnosticReports/.postgres_2011-11-06-194742_Ramys-MacBook-Pro.crash.plist
/Users/remcat/Library/Logs/DiagnosticReports/.postgres_2011-11-06-194757_Ramys-MacBook-Pro.crash.plist
/Users/remcat/Library/Logs/DiagnosticReports/.postgres_2011-11-06-194958_Ramys-MacBook-Pro.crash.plist
/Users/remcat/Library/Logs/DiagnosticReports/.postgres_2011-11-06-203352_Ramys-MacBook-Pro.crash.plist
/Users/remcat/Library/Logs/DiagnosticReports/.postgres_2011-11-06-203359_Ramys-MacBook-Pro.crash.plist
/Users/remcat/Library/Logs/DiagnosticReports/postgres_2011-11-06-194716_Ramys-MacBook-Pro.crash
/Users/remcat/Library/Logs/DiagnosticReports/postgres_2011-11-06-194742_Ramys-MacBook-Pro.crash
/Users/remcat/Library/Logs/DiagnosticReports/postgres_2011-11-06-194757_Ramys-MacBook-Pro.crash
/Users/remcat/Library/Logs/DiagnosticReports/postgres_2011-11-06-194958_Ramys-MacBook-Pro.crash
/Users/remcat/Library/Logs/DiagnosticReports/postgres_2011-11-06-203352_Ramys-MacBook-Pro.crash
/Users/remcat/Library/Logs/DiagnosticReports/postgres_2011-11-06-203359_Ramys-MacBook-Pro.crash …Run Code Online (Sandbox Code Playgroud) 我为我的Mac安装了mySQL.除了使用系统首选项中安装的mySQL.prefPane工具启动SQL服务器之外,我想知道从命令行启动的指令.我这样做:
后
苏根
我通过命令行启动mySQL服务器,它产生如下错误:
sh-3.2#/usr/local/mysql/bin/mysqld
111028 16:57:43 [警告]设置lower_case_table_names = 2,因为/usr/local/mysql-5.5.17-osx10.6-x86_64/data/的文件系统不区分大小写
111028 16:57:43 [ERROR]致命错误:请阅读本手册的"安全性"部分,了解如何以root身份运行mysqld!
111028 16:57:43 [错误]中止
111028 16:57:43 [注意]/usr/local/mysql/bin/mysqld:关闭完成
请帮我!
编辑:
原因在于:http://dev.mysql.com/doc/refman/5.5/en/changing-mysql-user.html
下面的xdazz答案中描述了一个解决方案.
我正在尝试使用一个允许我使用ruby-debug的补丁来重新安装ruby 1.9.3.
按照说明操作时
rvm reinstall 1.9.3 --patch debug --force-autoconf
Run Code Online (Sandbox Code Playgroud)
它贯穿并应用补丁吐出后:
rvm需要autoreconf来安装所选的ruby解释器,但是在PATH中找不到autoreconf.
不幸的是,谷歌搜索如何在OSX Lion上安装autoreconf(或者根本没有关于它的信息)似乎是一个死胡同.