[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Re: Installing ruby with RVM cannot find <CoreFoundation/CFString.h>
From:       Nick Gallimore <nfgallimore () gmail ! com>
Date:       2019-04-11 13:56:03
Message-ID: CA+gzaFNVZGyyDXPcZM-PXHPCijHXtyNZLdgAcuJWssw-z_keYA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thank you all for your help! I was really having a hard time trying to
figure out how to get the header files. This command solves the problem:

 open /Library/Developer/CommandLineTools/Packages/
macOS_SDK_headers_for_macOS_10.14.pkg

Also as far as conflicting version of ruby, I uninstalled the one with
homebrew by typing "brew uninstall ruby" then proceeded to install ruby
with "rvm install 6.2.0"

On Thu, Apr 11, 2019 at 5:54 AM romanch sharma <romanchsharma@icloud.com>
wrote:

> Hello Nicholas Gallimore,
> 
> Seams like you installed ruby with HomeBrew. It's not multiple ruby
> version. Its Inheritance. Every time you update there will be old code of
> old ruby version inside it. So Don't very about it.
> 
> Yes you are getting error inside rails because you are not using correct
> ruby with correct rails version.
> 
> I am more of a RVM user, So I can suggest to use RVM for managing ruby by
> simple commands:
> 
> $ rvm install ruby-2.6.2 --default
> $ rvm gemset create name_of_project
> $ gem gemset use name_of_project
> $ gem install bundler
> $ gem install rails
> $
> 
> You can also manage ruby versions form *rvmrc file*
> 
> So that you need not to switch ruby version every time, but latest rvm
> switch between automatic hence, you can use ramrc file in a much better way.
> 
> *Always install bundler first then rails for version stability.*
> 
> I hope your problem get solved by this.
> 
> Thank You,
> Romanch Sharma
> Self Taught :)
> 
> 
> On 10-Apr-2019, at 11:49 PM, Nick Gallimore <nfgallimore@gmail.com> wrote:
> 
> Apologies for asking an uninteresting question, I am currently trying to
> learn ruby for a senior capstone project by creating a RESTFUL api with it.
> I have been trying to install ruby using rvm for a week now and I have had
> little success. Both rvm and rbenv complain about not being able to find
> CoreFoundation/CFString.h on OSX. I know this is more of a question related
> specifically to my machine, but how can I fix my machine? I have posted on
> Apple forums, stackoverflow 3-4 times, etc., not sure where else to go from
> here.
> 
> I am on OSX 10.14.4 with XCode 2.2 installed. More detailed information
> can be viewed in the forum posts linked below.
> 
> I have homebrew and I am worried about having two versions of ruby
> conflicting with it.
> 
> Here is my post on apple's forums:
> 
> https://forums.developer.apple.com/thread/115518
> 
> StackOverflow:
> 
> 
> https://stackoverflow.com/questions/55525660/installing-ruby-2-3-1-on-mojave-osx-with-rbenv-or-rvm
>  
> 
> https://stackoverflow.com/questions/55618516/installing-ruby-with-rvm-cannot-find-corefoundation-cfstring-h?noredirect=1#comment97930271_55618516
>  
> I'm having issues right now with multiple ruby versions being installed
> (the osx one and the homebrew one I think). For example with rails right
> now trying to generate a new model I get:
> 
> /usr/local/Cellar/ruby/2.6.2/lib/ruby/2.6.0/bundler/lockfile_parser.rb:108:in
> `warn_for_outdated_bundler_version': *You must use Bundler 2 or greater
> with this lockfile. (**Bundler::LockfileError**)*
> 
> 
> Yet I have bundler 2.0 installed. Are there any grand master ruby wizards
> out there that can give me some guidance.
> 
> Basically I just want to ignore the OSX version of ruby (and leave it
> unchanged), and manage one using rvm where I can change the version based
> on what tutorial I am using (or even just maybe let it stay at the newest
> up to date one).
> 
> If I type ruby -v I get 2.6.2
> But if I generate a new project with rails for an api, the gemfile
> automatically goes to 2.3.7 and I have problems.
> 
> 
> Thank you,
> 
> Nicholas Gallimore
> 
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe
> <ruby-talk-request@ruby-lang.org?subject=unsubscribe>>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
> 
> 
> 
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
> 


[Attachment #5 (text/html)]

<div dir="ltr">Thank you all for your help! I was really having a hard time trying to \
figure out how to get the header files. This command solves the \
problem:<div><br></div><div>  <span class="gmail-pln" \
style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit \
;white-space:inherit;background-color:rgb(239,240,241);font-size:13px;margin:0px;paddi \
ng:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">open \
</span><span class="gmail-pun" \
style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit \
;white-space:inherit;background-color:rgb(239,240,241);font-size:13px;margin:0px;paddi \
ng:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">/</span><span \
class="gmail-typ" style="font-family:inherit;font-style:inherit;font-variant:inherit;f \
ont-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);font-size:13p \
x;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(43,145,175)">Library</span><span \
class="gmail-pun" style="font-family:inherit;font-style:inherit;font-variant:inherit;f \
ont-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);font-size:13p \
x;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">/</span><span \
class="gmail-typ" style="font-family:inherit;font-style:inherit;font-variant:inherit;f \
ont-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);font-size:13p \
x;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(43,145,175)">Developer</span><span \
class="gmail-pun" style="font-family:inherit;font-style:inherit;font-variant:inherit;f \
ont-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);font-size:13p \
x;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">/</span><span \
class="gmail-typ" style="font-family:inherit;font-style:inherit;font-variant:inherit;f \
ont-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);font-size:13p \
x;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical- \
align:baseline;box-sizing:inherit;color:rgb(43,145,175)">CommandLineTools</span><span \
class="gmail-pun" style="font-family:inherit;font-style:inherit;font-variant:inherit;f \
ont-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);font-size:13p \
x;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">/</span><span \
class="gmail-typ" style="font-family:inherit;font-style:inherit;font-variant:inherit;f \
ont-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);font-size:13p \
x;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(43,145,175)">Packages</span><span \
class="gmail-pun" style="font-family:inherit;font-style:inherit;font-variant:inherit;f \
ont-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);font-size:13p \
x;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">/</span><span \
class="gmail-pln" style="font-family:inherit;font-style:inherit;font-variant:inherit;f \
ont-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);font-size:13p \
x;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical- \
align:baseline;box-sizing:inherit;color:rgb(48,51,54)">macOS_SDK_headers_for_macOS_10</span><span \
class="gmail-pun" style="font-family:inherit;font-style:inherit;font-variant:inherit;f \
ont-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);font-size:13p \
x;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">.</span><span \
class="gmail-lit" style="font-family:inherit;font-style:inherit;font-variant:inherit;f \
ont-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);font-size:13p \
x;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical- \
align:baseline;box-sizing:inherit;color:rgb(125,39,39)">14.pkg</span></div><div><br></div><div><div \
class="gmail-grid gmail-mb0 gmail-fw-wrap gmail-ai-start gmail-jc-end gmail-gs8 \
gmail-gsy" style="padding:0px;border:0px;font-style:inherit;font-variant:inherit;font- \
weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:13px;vertical-align:baseline;box-sizing:inherit;display:flex"><div \
class="gmail-grid--cell gmail-mr16" style="margin:4px \
0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,&quot;Helvetica \
Neue&quot;,Helvetica,sans-serif;vertical-align:baseline;box-sizing:inherit;color:rgb(36,39,41)">Also \
as far as conflicting version of ruby, I uninstalled the one with homebrew by typing \
&quot;brew uninstall ruby&quot; then proceeded to install ruby with &quot;rvm install \
6.2.0&quot;</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">On Thu, Apr 11, 2019 at 5:54 AM romanch sharma &lt;<a \
href="mailto:romanchsharma@icloud.com">romanchsharma@icloud.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div \
style="overflow-wrap: break-word;">Hello Nicholas Gallimore,<div><br></div><div>Seams \
like you installed ruby with HomeBrew. It&#39;s not multiple ruby version. Its \
Inheritance. Every time you update there will be old code of old ruby version inside \
it. So Don't very about it.  </div><div><br></div><div>Yes you are getting error \
inside rails because you are not using correct ruby with correct rails version.  \
</div><div><br></div><div>I am more of a RVM user, So I can suggest to use RVM for \
managing ruby by simple commands:</div><div><br></div><div><div \
style="margin:0px;font-stretch:normal;font-size:21px;line-height:normal;font-family:Courier">$ \
rvm install ruby-2.6.2 --default</div><div \
style="margin:0px;font-stretch:normal;font-size:21px;line-height:normal;font-family:Courier">$ \
rvm gemset create name_of_project</div><div \
style="margin:0px;font-stretch:normal;font-size:21px;line-height:normal;font-family:Courier">$ \
gem gemset use name_of_project</div><div \
style="margin:0px;font-stretch:normal;font-size:21px;line-height:normal;font-family:Courier">$ \
gem install bundler</div><div \
style="margin:0px;font-stretch:normal;font-size:21px;line-height:normal;font-family:Courier">$ \
gem install rails</div><div \
style="margin:0px;font-stretch:normal;font-size:21px;line-height:normal;font-family:Courier">$ \
</div><div style="margin:0px;font-stretch:normal;font-size:21px;line-height:normal;font-family:Courier;min-height:25px"><br></div><div \
style="margin:0px;font-stretch:normal;font-size:21px;line-height:normal;font-family:&quot;Helvetica \
Neue&quot;">You can also manage ruby versions form <u>rvmrc file</u></div></div><div \
style="margin:0px;font-stretch:normal;font-size:21px;line-height:normal;font-family:&quot;Helvetica \
Neue&quot;"><br></div><div \
style="margin:0px;font-stretch:normal;line-height:normal"><font face="Helvetica \
Neue"><span style="font-size:21px">So that you need not to switch ruby version every \
time, but latest rvm switch between automatic hence, you can use  ramrc file in a \
much better way.</span></font></div><div \
style="margin:0px;font-stretch:normal;line-height:normal"><font face="Helvetica \
Neue"><span style="font-size:21px"><br></span></font></div><div \
style="margin:0px;font-stretch:normal;line-height:normal"><font face="Helvetica \
Neue"><span style="font-size:21px"><b>Always install bundler first then rails for \
version stability.</b></span></font></div><div \
style="margin:0px;font-stretch:normal;line-height:normal"><font face="Helvetica \
Neue"><span style="font-size:21px"><b><br></b></span></font></div><div \
style="margin:0px;font-stretch:normal;line-height:normal"><font face="Courier"><span \
style="font-size:21px">I hope your  problem get solved by \
this.</span></font></div><div \
style="margin:0px;font-stretch:normal;line-height:normal"><font face="Courier"><span \
style="font-size:21px"><br></span></font></div><div \
style="margin:0px;font-stretch:normal;line-height:normal"><font face="Courier"><span \
style="font-size:21px">Thank You,</span></font></div><div \
style="margin:0px;font-stretch:normal;line-height:normal"><font face="Courier"><span \
style="font-size:21px">Romanch Sharma</span></font></div><div \
style="margin:0px;font-stretch:normal;line-height:normal"><font face="Courier"><span \
style="font-size:21px">Self  Taught :)</span></font></div><div \
style="margin:0px;font-stretch:normal;font-size:21px;line-height:normal;font-family:&quot;Helvetica \
Neue&quot;"><br></div><div \
style="margin:0px;font-stretch:normal;font-size:21px;line-height:normal;font-family:&quot;Helvetica \
Neue&quot;"><br></div><div><div><blockquote type="cite"><div>On 10-Apr-2019, at 11:49 \
PM, Nick Gallimore &lt;<a href="mailto:nfgallimore@gmail.com" \
target="_blank">nfgallimore@gmail.com</a>&gt; wrote:</div><br \
class="gmail-m_9114486054038395369Apple-interchange-newline"><div><div \
dir="ltr">Apologies for asking an uninteresting question, I am currently trying to \
learn ruby for a senior capstone project by creating a RESTFUL api with it. I have \
been trying to install ruby using rvm for a week now and I have had little success. \
Both rvm and rbenv complain about not being able to find CoreFoundation/CFString.h on \
OSX. I know this is more of a question related specifically to my machine, but how \
can I fix my machine? I have posted on Apple forums, stackoverflow 3-4 times, etc., \
not sure where else to go from here.<div><br></div><div>I am on OSX 10.14.4 with \
XCode 2.2 installed. More detailed information can be viewed in the forum posts \
linked below.</div><div><br></div><div>I have homebrew and I am worried about having \
two versions of ruby conflicting with it.</div><div><br></div><div>Here is my post on \
apple&#39;s forums:</div><div><br></div><div><a \
href="https://forums.developer.apple.com/thread/115518" \
target="_blank">https://forums.developer.apple.com/thread/115518</a></div><div><br></div><div>StackOverflow:</div><div><br></div><div><a \
href="https://stackoverflow.com/questions/55525660/installing-ruby-2-3-1-on-mojave-osx-with-rbenv-or-rvm" \
target="_blank">https://stackoverflow.com/questions/55525660/installing-ruby-2-3-1-on-mojave-osx-with-rbenv-or-rvm</a><br></div><div><br></div><div><a \
href="https://stackoverflow.com/questions/55618516/installing-ruby-with-rvm-cannot-find-corefoundation-cfstring-h?noredirect=1#comment97930271_55618516" \
target="_blank">https://stackoverflow.com/questions/55618516/installing-ruby-with-rvm- \
cannot-find-corefoundation-cfstring-h?noredirect=1#comment97930271_55618516</a><br></div><div><br></div><div>I&#39;m \
having issues right now with multiple ruby versions being installed (the osx one and \
the homebrew one I think). For example with rails right now trying to generate a new \
model I get:</div><div><br></div><div><div \
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span \
class="gmail-m_9114486054038395369gmail-s1" \
style="font-variant-ligatures:no-common-ligatures">/usr/local/Cellar/ruby/2.6.2/lib/ruby/2.6.0/bundler/lockfile_parser.rb:108:in \
`warn_for_outdated_bundler_version&#39;: <b>You must use Bundler 2 or greater with \
this lockfile. (</b></span><span class="gmail-m_9114486054038395369gmail-s2" \
style="text-decoration-line:underline;font-variant-ligatures:no-common-ligatures"><b>Bundler::LockfileError</b></span><span \
class="gmail-m_9114486054038395369gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><b>)</b></span></div><div \
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><br></div><div \
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stre \
tch:normal;font-size:11px;line-height:normal;font-family:Menlo"><br></div></div><div>Yet \
I have bundler 2.0 installed. Are there any grand master ruby wizards out there that \
can give me some guidance.</div><div><br></div><div>Basically I just want to ignore \
the OSX version of ruby (and leave it unchanged), and manage one using rvm where I \
can change the version based on what tutorial I am using (or even just maybe let it \
stay at the newest up to date one).</div><div><br></div><div>If I type ruby -v I get \
2.6.2</div><div>But if I generate a new project with rails for an api, the gemfile \
automatically goes to 2.3.7 and I have \
problems.</div><div><br></div><div><br></div><div><div>Thank \
you,</div><div><br></div><div>Nicholas Gallimore</div></div></div> <br>Unsubscribe: \
&lt;<a href="mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe" \
target="_blank">mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe</a>&gt;<br>&lt;<a \
href="http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk" \
target="_blank">http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk</a>&gt;<br></div></blockquote></div><br></div></div><br>
                
Unsubscribe: &lt;mailto:<a href="mailto:ruby-talk-request@ruby-lang.org" \
target="_blank">ruby-talk-request@ruby-lang.org</a>?subject=unsubscribe&gt;<br> \
&lt;<a href="http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk" \
rel="noreferrer" target="_blank">http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk</a>&gt;<br>
 </blockquote></div>



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic