mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-16 15:23:53 -05:00
update
@@ -4,11 +4,20 @@ you need to install zlib-devel and rebuild Python.
|
|||||||
|
|
||||||
* Ubuntu: `sudo apt-get install libssl-dev zlib1g-dev`
|
* Ubuntu: `sudo apt-get install libssl-dev zlib1g-dev`
|
||||||
|
|
||||||
**NOTE**: `libssl-dev` is required when compiling Python, installing `libssl-dev` will actually install `zlib1g-dev`, this will help to eliminate subsequent **openssl (LoadError)** errors when running commands provided by RubyGems (for example vagrant and vmc), which leads to uninstall and re-install Python versions (installed before installing `libssl-dev`).
|
**NOTE**: `libssl-dev` is required when compiling Python, installing `libssl-dev` will actually install `zlib1g-dev`, which leads to uninstall and re-install Python versions (installed before installing `libssl-dev`).
|
||||||
|
|
||||||
* Fedora: `yum install zlib-devel`
|
* Fedora: `yum install zlib-devel`
|
||||||
|
|
||||||
|
|
||||||
|
## bzip2
|
||||||
|
|
||||||
|
you need to install bzip2-devel and rebuild Python.
|
||||||
|
|
||||||
|
* Ubuntu: `sudo apt-get install libbz2-dev`
|
||||||
|
|
||||||
|
* Fedora: `yum install bzip2 bzip2-devel`
|
||||||
|
|
||||||
|
|
||||||
## Readline support
|
## Readline support
|
||||||
|
|
||||||
Install `libreadline-dev` first before running `python-build`
|
Install `libreadline-dev` first before running `python-build`
|
||||||
@@ -23,11 +32,20 @@ pyenv install 2.7.5
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Removing a ruby version
|
## SQLite
|
||||||
|
|
||||||
|
you need to install sqlite-devel and rebuild Python.
|
||||||
|
|
||||||
|
* Ubuntu: `sudo apt-get install libsqlite3-dev
|
||||||
|
|
||||||
|
* Fedora: `yum install sqlite sqlite-devel`
|
||||||
|
|
||||||
|
|
||||||
|
## Removing a python version
|
||||||
|
|
||||||
rm -rf .pyenv/versions/2.7.5
|
rm -rf .pyenv/versions/2.7.5
|
||||||
|
|
||||||
## Installing a 32 bit ruby on 64 bit Mac OS X (this will *not* work on Linux)
|
## Installing a 32 bit python on 64 bit Mac OS X (this will *not* work on Linux)
|
||||||
|
|
||||||
CONFIGURE_OPTS="--with-arch=i386" CFLAGS="-arch i386" LDFLAGS="-arch i386" python-build options
|
CONFIGURE_OPTS="--with-arch=i386" CFLAGS="-arch i386" LDFLAGS="-arch i386" python-build options
|
||||||
|
|
||||||
@@ -43,13 +61,13 @@ You can set your CFLAGS to accepted safe values to help get a little more speed.
|
|||||||
|
|
||||||
## Build failed - bad interpreter: Permission denied
|
## Build failed - bad interpreter: Permission denied
|
||||||
|
|
||||||
If you encounter this error while installing ruby and your server is a VPS, the **/tmp** directory where python-build download and compile the packages is probably mounted as **noexec**. You can check with your hosting provider if wether they provide a way to bypass this protection.
|
If you encounter this error while installing python and your server is a VPS, the **/tmp** directory where python-build download and compile the packages is probably mounted as **noexec**. You can check with your hosting provider if wether they provide a way to bypass this protection.
|
||||||
|
|
||||||
If the answer is no, just set the **$TMPDIR** environment variable to wherever you have a write + execution rights. For example:
|
If the answer is no, just set the **$TMPDIR** environment variable to wherever you have a write + execution rights. For example:
|
||||||
|
|
||||||
export TMPDIR="$HOME/src"
|
export TMPDIR="$HOME/src"
|
||||||
|
|
||||||
Please note you'll have to do it every time you'll want to install a new version of ruby unless you write this command in your `~/.bashrc`.
|
Please note you'll have to do it every time you'll want to install a new version of python unless you write this command in your `~/.bashrc`.
|
||||||
|
|
||||||
## Build failed
|
## Build failed
|
||||||
|
|
||||||
@@ -64,7 +82,7 @@ BUILD FAILED
|
|||||||
```
|
```
|
||||||
please, be sure to have "make" installed (```$ sudo apt-get install make```). On Ubuntu Server, by default, it doesn't.
|
please, be sure to have "make" installed (```$ sudo apt-get install make```). On Ubuntu Server, by default, it doesn't.
|
||||||
|
|
||||||
## ruby-build: definition not found
|
## python-build: definition not found
|
||||||
|
|
||||||
To update your python-build definitions:
|
To update your python-build definitions:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user