Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure when installing glog on M1 Mac #33966

Closed
alphashuro opened this issue Jun 6, 2022 · 0 comments
Closed

Failure when installing glog on M1 Mac #33966

alphashuro opened this issue Jun 6, 2022 · 0 comments
Labels
Resolution: PR Submitted A pull request with a fix has been provided.

Comments

@alphashuro
Copy link
Contributor

Description

After running pod install in a new project, the command failed to execute sed -i '' 's/\@ac_cv_have_libgflags\@/0/' src/glog/logging.h.in due to what seems to be incorrect syntax (there is an empty string after the -i flag, causing sed to interpret the actual replace string as a file path). Is there something obscure I'm missing here, or is this a genuine typo?

Version

7.0.3

Output of npx react-native info

System:
OS: macOS 12.4
CPU: (10) arm64 Apple M1 Pro
Memory: 157.81 MB / 16.00 GB
Shell: 3.4.1 - /opt/homebrew/bin/fish
Binaries:
Node: 18.2.0 - /opt/homebrew/bin/node
Yarn: Not Found
npm: 8.9.0 - /opt/homebrew/bin/npm
Watchman: 2022.03.21.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.0 - /nix/store/48ikzg0v85glw6jcwfdx1y5w0dk7zj14-cocoapods-1.11.0/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8512546
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: 11.0.15 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

npx react-native init AwesomeProject --template react-native-template-typescript

# at this point it fails midway, and suggests you cd into the `ios` dir and run `pod install`

cd AwesomeProject/ios

pod install

Snack, code example, screenshot, or link to a repository

patching file config.sub
sed: can't read s/\@ac_cv_have_libgflags\@/0/: No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: PR Submitted A pull request with a fix has been provided.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants