Rubygems Issues For Mac

  1. Rubygems Issues For Mac Operating System
  2. See Full List On Bundler.io
Installation of Jekyll on Mac is usually less problematic than on Windows. However, you may run into permissions issues with Ruby that you must overcome. You should also use Bundler to be sure that you have all the required gems and other utilities on your computer to make the project run.

To fix this, first check that you have the following rpms installed: Next run the mandb command to populate/update the mandb database: Then run the following command, to try to find the man.gz man file. In your case you replace ‘vmstat’ with whatever command that you’re having problems with. Alternatives to RubyGems for Linux, Mac, Windows, Web, Self-Hosted and more. Filter by license to discover only free or Open Source alternatives. This list contains a total of 16 apps similar to RubyGems. List updated: 3/21/2019 8:17:00 AM.

What you might be interested to know is that Ruby comes preinstalled on your Mac. Don't believe me? Open the Terminal and type: ruby -v. Likely, the version number will return 1.8.7. While you might be tempted to stick with that, you probably shouldn't for a couple reasons: Old versions of the OS shipped with a buggy version of Ruby. RubyGems 一直以来在国内都非常难访问到,在本地你或许可以翻墙,当你要发布上线的时候,你就很难搞了! 这是一个完整 RubyGems 镜像,你可以用此代替官方版本,我们是完全基于 CDN 技术来实现,能确保几乎无延迟的同步。. Troubleshooting protocol errors. To troubleshoot protocol connection errors, start by running the automatic SSL check, and follow the instructions. You might need to update Bundler, update RubyGems, or even reinstall Ruby (you can find reinstallation instructions by version manager or package manager.).

Edit me

Ruby and RubyGems

Ruby and RubyGems are usually installed by default on Macs. Open your Terminal and type which ruby and which gem to confirm that you have Ruby and Rubygems. You should get a response indicating the location of Ruby and Rubygems.

If you get responses that look like this:

and

Great! Skip down to the Bundler section.

However, if your location is something like /Users/MacBookPro/.rvm/rubies/ruby-2.2.1/bin/gem, which points to your system location of Rubygems, you will likely run into permissions errors when trying to get a gem. A sample permissions error (triggered when you try to install the jekyll gem such as gem install jekyll) might look like this for Rubygems:

Instead of changing the write permissions on your operating system’s version of Ruby and Rubygems (which could pose security issues), you can install another instance of Ruby (one that is writable) to get around this.

Install Homebrew

Homebrew is a package manager for the Mac, and you can use it to install an alternative instance of Ruby code. To install Homebrew, run this command:

If you already had Homebrew installed on your computer, be sure to update it:

Install Ruby through Homebrew

Now use Homebrew to install Ruby:

Log out of terminal, and then then log back in.

When you type which ruby and which gem, you should get responses like this:

And this:

Easycap software download windows 10. Now Ruby and Rubygems are installed under your username, so these directories are writeable.

Note that if you don’t see these paths, try restarting your computer or try installing rbenv, which is a Ruby version management tool. If you still have issues getting a writeable version of Ruby, you need to resolve them before installing Bundler.

Install the Jekyll gem

At this point you should have a writeable version of Ruby and Rubygem on your machine.

Now use gem to install Jekyll:

You can now use Jekyll to create new Jekyll sites following the quick-start instructions on Jekyllrb.com.

Installing dependencies through Bundler

Some Jekyll themes will require certain Ruby gem dependencies. These dependencies are stored in something called a Gemfile, which is packaged with the Jekyll theme. You can install these dependencies through Bundler. (Although you don’t need to install Bundler for this Documentation theme, it’s a good idea to do so.)

Bundler is a package manager for RubyGems. You can use it to get all the gems (or Ruby plugins) that you need for your Jekyll project.

You install Bundler by using the gem command with RubyGems:

If you’re prompted to switch to superuser mode (sudo) to get the correct permissions to install Bundler in that directory, avoid doing this. All other applications that need to use Bundler will likely not have the needed permissions to run.

Bundler goes out and retreives all the gems that are specified in a Jekyll project’s Gemfile. If you have a gem that depends on other gems to work, Bundler will go out and retrieve all of the dependencies as well. (To learn more about Bundler, see About Ruby Gems.

The vanilla Jekyll site you create through jekyll new my-awesome-site doesn’t have a Gemfile, but many other themes (including the Documentation theme for Jekyll) do have a Gemfile.

Serve the Jekyll Documentation theme

  1. Browse to the directory where you downloaded the Documentation theme for Jekyll.
  2. Type jekyll serve
  3. Go to the preview address in the browser. (Make sure you include the / at the end.)

Resolve “No Github API authentication” errors

Support

After making an edit, Jekyll auto-rebuilds the site. If you have the Gemfile in the theme with the github-pages gem, you may see the following error:

If you see this error, you will need to take some additional steps to resolve it. (Note that this error only appears if you have the github-pages gem in your gemfile.) The resolution involves adding a Github token and a cert file.

Rubygems Issues For Mac Operating System

Rubygems issues for mac operating system
Note: These instructions apply to Mac OS X, but they’re highly similar to Windows. These instructions are adapted from a post on Knight Codes. If you’re on Windows, see the Knight Codes post for details instead of following along below.

To resolve the “No Github API authentication” error:

  1. Follow Github’s instructions to create a personal access token.
  2. Open the .bash_profile file in your user directory:

    The file will open in your default terminal editor. If you don’t have a .bash_profile file, you can just create a file with this name. Note that files that begin with . are hidden, so if you’re looking in your user directory for the file, use ls -a to see hidden files.

  3. In your .bash_profile file, reference your token as a system variable like this:

    Replace abc123.. with your own token that you generated in step 1.

  4. Go to [https://curl.haxx.se/ca/cacert.pem][https://curl.haxx.se/ca/cacert.pem]. Right-click the page, select **Save as, and save the file on your computer (save it somewhere safe, where you won’t delete it). Name the file cacert.
  5. Open your .bash_profile file again and add this line, replacing Users/johndoe/projects/ with the path to your cacert.pem file:

  6. Close and restart your terminal.

Browse to your jekyll project and run bundle exec jekyll serve. Make an edit to a file and observe that no Github API errors appear when Jekyll rebuilds the project.

Please enable JavaScript to load the comments.

See Full List On Bundler.io

Back up your Mac

And your memories. A few simple steps can save you from losing your favorite photos and files.

Learn how to back up your Mac

Mac service and repair

Learn about AppleCare+ and the Apple limited warranty coverage, start a service request for your Mac, and find out how to prepare your Mac for service.

Learn more about repairs

Get AppleCare+ for Mac

With AppleCare+, you’re covered. Get accidental damage coverage and 24/7 priority access to Apple experts.

Have a question?

Ask everyone. Our Apple Support Community can help you find answers.

Ask the Apple Support Community

Tell us how we can help

Answer a few questions and we'll help you find a solution.

Get support

Apple Service Programs