fukamachi / woo

A fast non-blocking HTTP server on top of libev
http://ultra.wikia.com/wiki/Woo_(kaiju)
MIT License
1.29k stars 97 forks source link

The alien function "ev_loop_new" is undefined #71

Open artforlife opened 6 years ago

artforlife commented 6 years ago

I am getting this error when trying to run Woo. Originally, I tried to use it through Clack or Lack, but it would not work.

Hence, I opted for doing just these two things in a fresh REPL:

(ql:quickload :woo)

(woo:run
  (lambda (env)
    (declare (ignore env))
    '(200 (:content-type "text/plain") ("Hello, World"))))

I immediately get the following error:

The alien function "ev_loop_new" is undefined. [Condition of type SB-KERNEL::UNDEFINED-ALIEN-FUNCTION-ERROR]

Restarts: 0: [RETRY] Retry SLIME REPL evaluation request. 1: [*ABORT] Return to SLIME's top level. 2: [ABORT] abort thread (#<THREAD "repl-thread" RUNNING {10022D8003}>)

Backtrace: 0: ("undefined function") 1: (LEV:EV-LOOP-NEW 41051748) 2: (SB-INT:SIMPLE-EVAL-IN-LEXENV (WOO:RUN (LAMBDA (ENV) (DECLARE #) (QUOTE #))) #) 3: (EVAL (WOO:RUN (LAMBDA (ENV) (DECLARE #) (QUOTE #)))) --more--

Does anyone know what could be the cause?

P.S. Is there a reason why (ql:quickload "woo") does not work? Is there another package with similar name?

fukamachi commented 6 years ago

Does the environment have been installed libev? 2018年1月22日(月) 2:57 artforlife notifications@github.com:

I am getting this error when trying to run Woo. Originally, I tried to use it through Clack or Lack, but it would not work.

Hence, I opted for doing just these two things in a fresh REPL:

(ql:quickload :woo)

(woo:run (lambda (env) (declare (ignore env)) '(200 (:content-type "text/plain") ("Hello, World"))))

I immediately get the following error:

The alien function "ev_loop_new" is undefined. [Condition of type SB-KERNEL::UNDEFINED-ALIEN-FUNCTION-ERROR]

Restarts: 0: [RETRY] Retry SLIME REPL evaluation request. 1: [*ABORT] Return to SLIME's top level. 2: [ABORT] abort thread (#<THREAD "repl-thread" RUNNING {10022D8003}>)

Backtrace: 0: ("undefined function") 1: (LEV:EV-LOOP-NEW 41051748) 2: (SB-INT:SIMPLE-EVAL-IN-LEXENV (WOO:RUN (LAMBDA (ENV) (DECLARE #) (QUOTE

))) #)

3: (EVAL (WOO:RUN (LAMBDA (ENV) (DECLARE #) (QUOTE #)))) --more--

Does anyone know what could be the cause?

P.S. Is there a reason why (ql:quickload "woo") does not work? Is there another package with similar name?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fukamachi/woo/issues/71, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFhyvDf39hs4yQvv9v4pNxbSdlk43GMks5tM3qPgaJpZM4Rl5zJ .