kwando

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

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.

10
Post #3
richjdsmith

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

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 :man_shrugging:).
  • -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 as mac_listener.

And with the mac_listener in place, it worked fine.

Where Next?

Popular in Questions Top

albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
nobody
How to bind a phoenix app to a specific ip address? could not find anything about that, nowhere, unfortunately, but for me this is quite...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: The documentation above suggests that while ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
dotdotdotPaul
Okay, I’m having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I’m sure I’...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New

Other popular topics Top

danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 29377 241
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
jaysoifer
Is there a way to rollback a specific migration and only that one (“skipping” all the other ones)? Would mix ecto.rollback -v 200809061...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
klo
Got a question about when to concat vs. prepending items to list then reversing to achieve appending. So i know lists boil down to [1 | ...
New

We're in Beta

About us Mission Statement