Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

591
Views
RVM install ruby 2.6.4 falla con un error de archivo MAKE: la declaración implícita de la función 'ffi_prep_closure' no es válida en C99

RVM rvm 1.29.12-siguiente

Mac OS Big Sur en chip M1

rvm install 2.6.4 falla con:

 Error running '__rvm_make -j8', please read /Users/jason/.rvm/log/1626110300_ruby-2.6.4/make.log There has been an error while running make. Halting the installation.

el error del archivo MAKE es:

 error: implicit declaration of function 'ffi_prep_closure' is invalid in C99 [-Werror,-Wimplicit-function-declaration] result = ffi_prep_closure(pcl, cif, callback, (void *)self);
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

esto se debe a que los indicadores de entorno para RVM no están configurados en su shell.

brew info libffi

te dirá las variables que necesitas:

Para que los compiladores encuentren libffi, es posible que deba configurar: export LDFLAGS="-L/opt/homebrew/opt/libffi/lib" export CPPFLAGS="-I/opt/homebrew/opt/libffi/include"

Para que pkg-config encuentre libffi, es posible que deba configurar: export PKG_CONFIG_PATH="/opt/homebrew/opt/libffi/lib/pkgconfig"

para ZSH, edite ~/.zshenv y agregue:

 export LDFLAGS="-L/opt/homebrew/opt/libffi/lib" export CPPFLAGS="-I/opt/homebrew/opt/libffi/include" export PKG_CONFIG_PATH="/opt/homebrew/opt/libffi/lib/pkgconfig"

Cierre y vuelva a abrir la ventana de su terminal o source ~/.zshrc para cargar sus cambios

Revisa tu trabajo con

 % echo $LDFLAGS -L/opt/homebrew/opt/libffi/lib % echo $CPPFLAGS -I/opt/homebrew/opt/libffi/include % echo $PKG_CONFIG_PATH /opt/homebrew/opt/libffi/lib/pkgconfig

(confirme que las variables de entorno sean correctas)

vuelva a intentar instalar la versión de rvm que desea instalar.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!