achenet
No Tailwind binary for FreeBSD
Hello,
I’m trying to build a basic Phoenix web-app, and I’d like to use Tailwind.
However, when I launch mix phx.server, I get an error:
** (RuntimeError) The tailwind binary couldn’t be found at: https://github.com/tailwindlabs/tailwindcss/releases/download/v4.1.12/tailwindcss-freebsd-x64
sure enough, the Tailwind Releases Page has no release for FreeBSD-x64.
How can I solve this? Is there a way to get a working Tailwind binary (building it from source maybe?) and tell Phoenix to use that instead?
First Post!
Schultzer
IMO the best path would be to kick out tailwind and just ship with modern CSS with AI today there is no excuses left for having to pull in a framework that is not portable. Not sure if tailwind’s goal is even to be portable everywhere.
Most Liked
garrison
Schultzer
krasenyp
The situation is awful. The FreeBSD package expects an environment variable to the Node installation directory. It’s not documented at all. I had to look into the code to find out, it just errored out.
These problems motivate me to get rid of Tailwind altogether.
Last Post!
adamwight
Okay, in my case the missing piece was a small back-compatibility package which allows fbsd 15 to run with older dynamically-linked binaries:
pkg install misc/compat14x
If anyone else needs the standalone binary for fbsd, the instructions in the Tailwind readme are still correct:
mix tailwind.install https://people.freebsd.org/~dch/pub/tailwind/v3.4.17/tailwindcss-freebsd-x64
Works well! Although I usually develop on linux and only run freebsd for production, I also use “mix release” which needs to be run in a production-line environment and it makes sense that tailwind assets.deploy would be included in that pipeline. I’ll propose small changes to the glue library to help others running into this.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex









