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

No Apple Silicon bottles available: pdftk-java, pandoc #467

Closed
kkbt opened this issue May 16, 2021 · 3 comments
Closed

No Apple Silicon bottles available: pdftk-java, pandoc #467

kkbt opened this issue May 16, 2021 · 3 comments
Labels

Comments

@kkbt
Copy link

kkbt commented May 16, 2021

What you were trying to do (and why)

Trying to install formulae pdftk-java and pandoc.
Other formulae were installed without any problem.

What happened (include screenshots)

Error message "no bottle available!" appeared.

Log:

% brew install pdftk-java
Error: pdftk-java: no bottle available!
You can try to install from source with:
brew install --build-from-source pdftk-java
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.
% brew install pandoc
Error: pandoc: no bottle available!
You can try to install from source with:
brew install --build-from-source pandoc
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.
% sw_vers
ProductName: macOS
ProductVersion: 11.3.1
BuildVersion: 20E241

What you expected to happen

Proper installation.

Bottles seem to be available for macOS Big Sur (= macOS 11) for Intel only, not for Apple Silicon which I have:

For example, this formula provides bottle (binary package) installation support for Apple Silicon Big Sur and is installed without any problem:

@SMillerDev
Copy link
Member

If there is no bottle it means the software doesn't build on ARM.

@kkbt
Copy link
Author

kkbt commented May 16, 2021

@kkbt
Copy link
Author

kkbt commented May 16, 2021

As a preliminary solution, I was successful in installing the Intel version of homebrew in /usr/local (in parallel to the M1 version in /opt/homebrew) using Apple's Rosetta 2 layer. The Intel packages (homebrew formulae) seem to work without any problem on the Apple M1 architecture. Both pdftk and pandoc work even without prefixing 'arch -x86_64' (e.g., the command 'pandoc sample.md -o sample.html' as in the example linked below).

Commands:

arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
alias ibrew='arch -x86_64 /usr/local/bin/brew'
ibrew analytics off
ibrew install pdftk-java
ibrew install pandoc

Further information:

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants