Installing Ruby (latest) on Mac Mojave--CoreFoundation/CFString.h not found

To whom it may concern,

I have tried to install Ruby--latest version (cloned from Github) and
2.5.3--using rbenv, rvm and even compiling the source code, but I got an
error, always the same. The error is as follows
`file.c:23:10: fatal error: 'CoreFoundation/CFString.h' file not found

#include <CoreFoundation/CFString.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~`

Would anybody help to solve this problem?

Best regards

P.S. I am not sure if this email is the right place to follow this kind of
problem, SIA.

You probably should open a ticket here https://bugs.ruby-lang.org/

Regards,
iain

···

On 12 Nov 2018, at 08:13, esmaeil mirzaee <esmaeilmirzaee@gmail.com> wrote:

To whom it may concern,

I have tried to install Ruby--latest version (cloned from Github) and 2.5.3--using rbenv, rvm and even compiling the source code, but I got an error, always the same. The error is as follows
`file.c:23:10: fatal error: 'CoreFoundation/CFString.h' file not found
#include <CoreFoundation/CFString.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~`

Would anybody help to solve this problem?

Best regards

P.S. I am not sure if this email is the right place to follow this kind of problem, SIA.

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Quoting esmaeil mirzaee (esmaeilmirzaee@gmail.com):

   I have tried to install Ruby--latest version (cloned from Github) and
   2.5.3--using rbenv, rvm and even compiling the source code, but I got an
   error, always the same. The error is as follows
   `file.c:23:10: fatal error: 'CoreFoundation/CFString.h' file not found

   #include <CoreFoundation/CFString.h>

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~`
   Would anybody help to solve this problem?

I have nothing to do with macs, so I cannot help further than this,
but if you search around a bit you will find hints and
suggestions. Like those contained in this stackoverflow discussion,
which relates to C extensions for python:

Apparently, this problem has nothing to do with Ruby.

Hope this helps

Carlo

···

Subject: Installing Ruby (latest) on Mac Mojave--CoreFoundation/CFString.h not found
  Date: dom 11 nov 18 06:13:05 -0500

--
  * Se la Strada e la sua Virtu' non fossero state messe da parte,
* K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe
  * di parlare tanto di amore e di rettitudine? (Chuang-Tzu)

Hi,

I don't know if it helps but I don't see this version in `asdf`.

2.5.0
2.5.1
2.6.0-dev
2.6.0-preview1
2.6.0-preview2

No 2.5.3 here. 2.5.1 works fine though.

Did you try installing developer tools?

···

On 12 Nov 2018, at 02:13, esmaeil mirzaee <esmaeilmirzaee@gmail.com> wrote:

To whom it may concern,

I have tried to install Ruby--latest version (cloned from Github) and 2.5.3--using rbenv, rvm and even compiling the source code, but I got an error, always the same. The error is as follows
`file.c:23:10: fatal error: 'CoreFoundation/CFString.h' file not found
#include <CoreFoundation/CFString.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~`

Would anybody help to solve this problem?

Best regards

P.S. I am not sure if this email is the right place to follow this kind of problem, SIA.

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Thank you all for the help.

Unfortunately, I tried the suggested solutions but none of them worked.
Also, the installation of the previous version does not change the
circumstances.

I installed a couple of developer libraries/tools. However, currently,
there are two versions of OpenSSL on my device. The former is a new version
of OpenSSL, 1.1.0 and the latter is an older version that exists on
/usr/bin/openssl (i.e. libressl) which I do not know how to remove it, this
version makes trouble during the installation of unbound library. I did all
the tricks on the book to remove the older version. Any suggestions?

···

On Mon, 12 Nov 2018 at 14:51, Dmitriy Non <non.dmitriy@gmail.com> wrote:

Hi,

I don't know if it helps but I don't see this version in `asdf`.

2.5.0
2.5.1
2.6.0-dev
2.6.0-preview1
2.6.0-preview2

No 2.5.3 here. 2.5.1 works fine though.

Did you try installing developer tools?

> On 12 Nov 2018, at 02:13, esmaeil mirzaee <esmaeilmirzaee@gmail.com> > wrote:
>
> To whom it may concern,
>
> I have tried to install Ruby--latest version (cloned from Github) and
2.5.3--using rbenv, rvm and even compiling the source code, but I got an
error, always the same. The error is as follows
> `file.c:23:10: fatal error: 'CoreFoundation/CFString.h' file not found
> #include <CoreFoundation/CFString.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~`
>
> Would anybody help to solve this problem?
>
> Best regards
>
> P.S. I am not sure if this email is the right place to follow this kind
of problem, SIA.
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

1 Like