python_install
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
python_install [2018/01/01 14:50] – [Troubleshooting] g00r00 | python_install [2019/02/02 14:42] – g00r00 | ||
---|---|---|---|
Line 91: | Line 91: | ||
Like the Windows version, another issue some people have ran into is that their bit level of Python does not match that of Mystic which can cause crashes when a script is attempting to execute. | Like the Windows version, another issue some people have ran into is that their bit level of Python does not match that of Mystic which can cause crashes when a script is attempting to execute. | ||
+ | |||
+ | **NOTE: Some Linux distributions come with a pre-installed Python 2.7 or a package-based install of Python 2.7 that is not compiled in a way that works properly with embedded Python applications.** | ||
+ | |||
+ | When Python is compiled wrong, it will have issues loading some modules resulting in an error when you execute the Mystic Python script. | ||
+ | |||
+ | The following steps can be used to reinstall Python 2.7 on Ubuntu 18.04 LTS: | ||
+ | |||
+ | **INSTALL PREREQUISITES: | ||
+ | * sudo apt-get update | ||
+ | * sudo apt-get install build-essential checkinstall | ||
+ | * sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev | ||
+ | |||
+ | **COMPILE PYTHON:** | ||
+ | * cd /usr/src | ||
+ | * sudo wget https:// | ||
+ | * cd / | ||
+ | * sudo ./configure --enable-optimizations --enable-unicode=ucs4 --enable-shared | ||
+ | * sudo make install | ||
+ | |||
+ | **CREATE LINK TO PYTHON:** | ||
+ | * sudo ln -s / | ||
+ |
python_install.txt · Last modified: 2023/01/08 12:24 by g00r00