Install V-REP On OS X instantly via command line!

Typically: "How do I... ", "How can I... " questions
Post Reply
ahundt
Posts: 112
Joined: 29 Jan 2015, 04:21

Install V-REP On OS X instantly via command line!

Post by ahundt »

I made an easy method to install V-REP PRO EDU on OS X trivially with the homebrew package manager and application installer hombrew cask on OS X!

How to install V-REP with 3 lines of code

Code: Select all

# If you don't have homebrew run the following:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# If you don't have Homebrew Cask run the following:
brew install caskroom/cask/brew-cask

# Install V-REP
brew cask install vrep

How to update V-REP with 1 line of code

Code: Select all

# warning: this may delete files in your vrep's executable folder, backup first
brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup
More info on Homebrew Cask:
How to use homebrew cask


Installer script:
https://github.com/caskroom/homebrew-ca ... ks/vrep.rb


Updating installer script for new versions
  • If you don't know github read the github bootcamp
  • fork/clone the homebrew-cask repository in github (login then hit fork button on page)
  • clone it locally
  • open vrep.rb
  • increment the version number
  • download the zip file
  • run the following on the zip so you can get the new sha checksum:

    Code: Select all

    shasum -a 256 ~/Downloads/V-REP_PRO_EDU_V3_2_2_Mac.zip
    9aa17c04d2e61fcd0ae2270c22b0a460beea9c86819636912cd9051237b446ff  /Users/vrep/Downloads/V-REP_PRO_EDU_V3_2_2_Mac.zip
    
  • Copy the checksum over the existing one in vrep.rb.
    Checksum example: "9aa17c04d2e61fcd0ae2270c22b0a460beea9c86819636912cd9051237b446ff"
  • Commit the changes, preferably with a message like "vrep.rb updated to 3.2.2"
  • Push to your fork (see github help for instructions on this)
  • Browse to the homebrew-cask github repository.
  • An update should appear saying you can submit a pull request, click it.
  • Submit the pull request
  • It will be run through continuous integration then someone should merge it!
  • Be sure to check back and make sure there weren't problems.
Copellia, perhaps mentioning the V-REP PRO EDU 3 lines setup and 1 line update is worth including on your downloads page?

coppelia
Site Admin
Posts: 10375
Joined: 14 Dec 2012, 00:25

Re: Install V-REP On OS X instantly via command line!

Post by coppelia »

Thanks for mentioning this and the exhaustive info/description!
Looks like a convenient way via command-line.

Cheers

Post Reply