Discussion:
Installing Ruby (latest) on Mac Mojave--CoreFoundation/CFString.h not found
esmaeil mirzaee
2018-11-11 23:13:05 UTC
Permalink
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.
iain barnett
2018-11-12 02:31:31 UTC
Permalink
You probably should open a ticket here https://bugs.ruby-lang.org/

Regards,
iain
Post by esmaeil mirzaee
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.
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Carlo E. Prelz
2018-11-12 05:04:09 UTC
Permalink
Subject: Installing Ruby (latest) on Mac Mojave--CoreFoundation/CFString.h not found
Date: dom 11 nov 18 06:13:05 -0500
Post by esmaeil mirzaee
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:

https://stackoverflow.com/questions/52509602/cant-compile-c-program-on-a-mac-after-upgrade-to-mojave

Apparently, this problem has nothing to do with Ruby.

Hope this helps

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

Unsubscribe: <mailto:ruby-talk-***@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Dmitriy Non
2018-11-12 19:51:12 UTC
Permalink
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?
Post by esmaeil mirzaee
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.
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Unsubscribe: <mailto:ruby-talk-***@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
esmaeil mirzaee
2018-11-12 23:11:46 UTC
Permalink
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?
Post by Dmitriy Non
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?
Post by esmaeil mirzaee
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
Post by esmaeil mirzaee
`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.
?subject=unsubscribe>
Post by esmaeil mirzaee
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Loading...