Summary of folders where Ruby, Python, PostgreSQL, etc. are installed on macOS (updated from time to time)

I tried to find out where various things are installed on Ruby & macOS

environment

Overview of folder structure of macOS itself

/bin
/sbin
/usr
/Applications
/Users/user_name/Applications
~ #=> /Users/user_name

Folder location

Ruby

Ruby installed via rbenv

/usr/local/Cellar/rbenv/1.1.1    #rbenv body
/Users/user_name/.rbenv/versions #Ruby

System Ruby

/System/Library/Frameworks/Ruby.framework/Versions

Gem

Ruby Gem installed via rbenv

/usr/local/Cellar/rbenv/1.1.0/versions/2.3.3/lib/ruby/gems/2.3.0/gems

System Ruby Gem

/Library/Ruby/Gems/2.0.0/gems

PostgreSQL

/usr/local/Cellar/postgresql/9.6.3 #PostgreSQL body
/usr/local/var/postgres/base       #DB file location

Python

Python installed via pyenv

/usr/local/Cellar/pyenv/1.1.3    #pyenv body
/Users/user_name/.pyenv/versions #Python

System Python

/System/Library/Frameworks/Python.framework/Versions

To investigate in the future

Where Ruby is installed

Why is Ruby installed via rbenv installed in /usr/local/Cellar/rbenv/1.1.0/versions? There is also a page that says it will be installed in /Users/user_name/.rbenv/versions. Addendum: Because RBENV_ROOT is set to / usr / local / opt / rbenv. However, I don't remember setting it, and I'm investigating where it was set. Basically, it seems better to install it in the default /Users/user_name/.rbenv/versions (What is rbenv rehash doing? See / 02 / rbenv_rehash_what_it_does.html). Addendum 2: It seems that it is due to the setting of the plugin file /Users/user_name/.oh-my-zsh/plugins/rbenv/rbenv.plugin.zsh of oh-my-zsh. It seems that it will be fixed if this PR is merged (Related: Issue # 3093 / oh-my-zsh/issues/3093), PR # 3808, [PR # 4384](https://github .com / robyrussell / oh-my-zsh / pull / 4384), Issue # 4998, PR # 6168 //github.com/robbyrussell/oh-my-zsh/pull/6168)). Addendum 3: Editing the above plugin file as per PR does not work, so I decided not to use the rbenv plugin of oh-my-zsh and reinstalled Ruby, as recommended. It became a movement.

reference

How to check the path of gems referenced by Ruby and installed gems Building Rails development environment (multiple versions can coexist) (Homebrew edition) How does rbenv + ruby-build work Building postgreSQL Basic usage of rbenv and bundler What is rbenv rehash doing? The best way to coexist Python 3.x and 2.x on Mac Use oh-my-zsh to bring together useful zsh settings

(Reference) Ubuntu folder structure (under construction)

/usr
/bin

Recommended Posts

Summary of folders where Ruby, Python, PostgreSQL, etc. are installed on macOS (updated from time to time)
Summary of vtkThreshold (updated from time to time)
Summary of gcc options (updated from time to time)
Machine learning python code summary (updated from time to time)
[Updated from time to time] Summary of design patterns in Java
vtkXMLUnstructuredGridReader Summary (updated from time to time)
vtkOpenFOAMReader Summary (Updated from time to time)
Private Python handbook (updated from time to time)
vtkClipPolyData / DataSet Summary (Updated from time to time)
Notes on machine learning (updated from time to time)
progate Python learning memo (updated from time to time)
Useful help sites, etc. (updated from time to time)
Apache settings, log confirmation, etc. (* Updated from time to time)
[Updated from time to time] Python memos often used for data analysis [N division, etc.]
[Updated from time to time] Review of Let Code NumPy
A memorandum of commands, packages, terms, etc. used in linux (updated from time to time)
Anaconda updated from 4.2.0 to 4.3.0 (python3.5 updated to python3.6)
[Notes / Updated from time to time] This and that of Azure Functions
[Note] AI / machine learning / python related websites [updated from time to time]
Engineer vocabulary (updated from time to time)
Create folders from '01' to '12' with python
Tensorflow memo [updated from time to time]
Python (from first time to execution)
Update Python on Mac from 2 to 3
From re-environment construction of Python to graph drawing (on visual studio code)
(Updated from time to time) Summary of machine learning APIs that allow you to quickly build apps by Team AI
[Python] Summary of how to use pandas
[Python] Summary of array generation (initialization) time! !! !!
Connecting from python to MySQL on CentOS 6.4
[Python2.7] Summary of how to use unittest
[Updated from time to time] PostmarketOS related notes
Summary of how to use Python list
[Python2.7] Summary of how to use subprocess
Summary of points I was addicted to running Selenium on AWS Lambda (python)