Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
8cb980f7
Commit
8cb980f7
authored
10 years ago
by
Misty De Meo
Browse files
Options
Downloads
Patches
Plain Diff
doctor: Add check for install_name_tool
Closes Homebrew/homebrew#29593.
parent
3df97589
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Library/Homebrew/cmd/doctor.rb
+14
-0
14 additions, 0 deletions
Library/Homebrew/cmd/doctor.rb
Library/Homebrew/cmd/install.rb
+1
-0
1 addition, 0 deletions
Library/Homebrew/cmd/install.rb
with
15 additions
and
0 deletions
Library/Homebrew/cmd/doctor.rb
+
14
−
0
View file @
8cb980f7
...
...
@@ -312,6 +312,20 @@ def check_for_stray_developer_directory
end
end
def
check_for_bad_install_name_tool
return
if
MacOS
.
version
<
10.9
libs
=
`otool -L /usr/bin/install_name_tool`
unless
libs
.
include?
"/usr/lib/libxcselect.dylib"
then
<<-
EOS
.
undent
You have an outdated version of /usr/bin/install_name_tool installed.
This will cause binary package installations to fail.
This can happen if you install osx-gcc-installer or RailsInstaller.
To restore it, you must reinstall OS X or restore the binary from
the OS packages.
EOS
end
end
def
__check_subdir_access
base
target
=
HOMEBREW_PREFIX
+
base
return
unless
target
.
exist?
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/cmd/install.rb
+
1
−
0
View file @
8cb980f7
...
...
@@ -55,6 +55,7 @@ module Homebrew extend self
check_for_installed_developer_tools
check_xcode_license_approved
check_for_osx_gcc_installer
check_for_bad_install_name_tool
]
.
each
do
|
check
|
out
=
checks
.
send
(
check
)
opoo
out
unless
out
.
nil?
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment