kwando
Can't find executable `mac_listener` - [error] exited in: GenServer.call
I’ve installed a lot of updates on my machine, both from brew and the App Store and I probably broke something. When I create a new Phoenix (1.3.0) app with “mix phx.new ” and run it I get the following error in the console:
[error] exited in: GenServer.call(:phoenix_live_reload_file_monitor, :subscribe, 5000)
** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its applicat
ion isn't started
Anyone got an idea on what I should do to rectify this?
Most Liked
kwando
Nvm, I fixed this right now.
I got a new version of X-Code installed and I forgot to accept the updated license. If the license is not accepted the tools in it cannot be used. This made the file_system package (dependency of phoenix_live_reload) fail to compile the native stuff it needs to compile in order to detect changes to the file system.
Anyway, accepting the license and mix deps.clean --all && mix deps.compile made this error disappear and everything works again.
richjdsmith
I ran into this issue this afternoon after having updated my operating system.
For those that stumble onto this thread, running xcode-select --install, accepting the new license agreement and then just running mix deps.compile file_system worked for me.
marcelfahle
Hey friends,
I had the same issues as most folks above (macOS Sonoma 14.3.1) and none of the solutions worked, even reinstalling xcode, command line tools, etc.
What I ended up doing and what worked is the following inside deps/file_system:
xcrun clang -isysroot $(xcrun --show-sdk-path) -I$(xcrun --show-sdk-path)/usr/include -framework CoreFoundation -framework CoreServices -Wno-deprecated-declarations c_src/mac/*.c -o priv/mac_listener
So basically:
$(xcrun --show-sdk-path): Ensures the compiler knows where to find the system SDK.-I$(xcrun --show-sdk-path)/usr/include: Specifies where to find include headers (probably redundant with the SDK setting
).-framework CoreFoundation -framework CoreServices: Links necessary Apple frameworks.c_src/mac/*.c -o priv/mac_listener: Compiles all C files in the specified directory and outputs the executable asmac_listener.
And with the mac_listener in place, it worked fine.
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
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








