


If you’re really interested in all the possible options, including ones I don’t recommend (such as installing Ruby with Homebrew), read my definitive guide to installing gems on a Mac.
INSTALLING RUBY ON RAILS MAC INSTALL
Glad you asked! The most reliable method, and the only one I recommend, is to install a separate and newer version of Ruby using a version manager. So what’s the proper way to install Rails on a Mac?
INSTALLING RUBY ON RAILS MAC HOW TO
Users/lalala/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rbīuffer.h:23:20: error: stdint.h: No such file or directoryīuffer.h:41: error: expected specifier-qualifier-list before ‘uint8_t’Īutolink.h:31: warning: type defaults to ‘int’ in declaration of ‘uint8_t’Īutolink.h:31: error: expected ‘ ’, ‘,’ or ‘)’ before ‘*’ tokenĪutolink.h:35: error: expected declaration specifiers or ‘.’ before ‘uint8_t’Īutolink.h:39: error: expected declaration specifiers or ‘.’ before ‘uint8_t’Īutolink.h:43: error: expected declaration specifiers or ‘.’ before ‘uint8_t’Īutolink.c:20:20: error: string.h: No such file or directoryĪutolink.c:21:20: error: stdlib.h: No such file or directoryĪutolink.c:22:19: error: stdio.h: No such file or directoryĪutolink.c:23:19: error: ctype.h: No such file or directoryĪutolink.c:30: warning: type defaults to ‘int’ in declaration of ‘uint8_t’Īutolink.c:30: error: expected ‘ ’, ‘,’ or ‘)’ before ‘*’ tokenĪutolink.c:52: error: expected ‘)’ before ‘*’ tokenĪutolink.c:136: error: expected ‘)’ before ‘*’ tokenĪutolink.c:165: error: expected declaration specifiers or ‘.’ before ‘uint8_t’Īutolink.c: In function ‘sd_autolink_error: ‘data’ undeclared (first use in this function)Īutolink.c:172: error: (Each undeclared identifier is reported only onceĪutolink.c:172: error: for each function it appears in.)Īutolink.c:172: warning: implicit declaration of function ‘isspace’Īutolink.c:175: warning: implicit declaration of function ‘memcmp’Īutolink.c:175: warning: implicit declaration of function ‘strlen’Īutolink.c:175: warning: incompatible implicit declaration of built-in function ‘strlen’Īutolink.c:178: warning: implicit declaration of function ‘check_domain’Īutolink.c:186: warning: implicit declaration of function ‘autolink_delim’Īutolink.c:201: error: expected declaration specifiers or ‘.’ before ‘uint8_t’Īutolink.c: In function ‘sd_autolink_email’:Īutolink.c:210: error: ‘uint8_t’ undeclared (first use in this function)Īutolink.c:210: error: expected ‘ ’ before ‘c’Īutolink.c:212: warning: implicit declaration of function ‘isalnum’Īutolink.c:212: error: ‘c’ undeclared (first use in this function)Īutolink.c:215: warning: implicit declaration of function ‘strchr’Īutolink.c:215: warning: incompatible implicit declaration of built-in function ‘strchr’Īutolink.c:225: error: expected ‘ ’ before ‘c’Īutolink.c:241: error: ‘data’ undeclared (first use in this function)Īutolink.c:256: error: expected declaration specifiers or ‘.’ before ‘uint8_t’Īutolink.c: In function ‘sd_autolink_url’:Īutolink.c:263: error: ‘data’ undeclared (first use in this function)Īutolink.c:266: warning: implicit declaration of function ‘isalpha’Īutolink.c:269: warning: implicit declaration of function ‘sd_autolink_issafe’Īutolink.c:272: warning: incompatible implicit declaration of built-in function ‘strlen’Īpparently there's a problem with some of the c libraries, however I have no idea how to fix it, I've been googling but haven't found anything useful.However, a better solution is to install a newer version of Rails, or update the Rails version in your existing project to at least 5.2.8.1, which is the latest version in the 5.2.x series. Here's the errors I'm getting: ERROR: Error installing redcarpet:ĮRROR: Failed to build gem native extension.

The problem is that a few days ago I upgraded to Mavericks OS and I'm not able to install it, but I'm not really sure if it has anything to do with the change of OS. I'm currently trying to install Redcarpet gem for a rails project.
