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/17 16:25] – [Troubleshooting] g00r00 | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Installation and Requirements ===== | ===== Installation and Requirements ===== | ||
- | Mystic requires that Python 2.7 is installed on your system | + | Mystic BBS has an embedded Python scripting engine called Mystic Python. |
- | + | ||
- | Most Linux desktop distributions and Apple' | + | **Note:** The "bit level" of Python |
+ | |||
+ | In Windows, Python needs to be installed by downloading it from the Website: | ||
+ | |||
+ | Most Linux desktop distributions and MacOS will come with Python 2.7 installed by default, and in some cases full Mystic Python functionality will work out of the box without additional steps. | ||
- | **Note: | + | If you are using a Linux operating system |
==== Library Validation / Installation ==== | ==== Library Validation / Installation ==== | ||
Line 19: | Line 23: | ||
In Windows, you should probably know if Python is installed already since it has to be manually installed. | In Windows, you should probably know if Python is installed already since it has to be manually installed. | ||
- | In Linux environments, | + | In Linux environments, |
+ | |||
+ | You can check to see if you have the proper library installed by searching the results of ldconfig: | ||
ldconfig -p | grep libpython2.7.so.1.0 | ldconfig -p | grep libpython2.7.so.1.0 | ||
| | ||
+ | Note that some Linux distributions come with a Python 2.7 package or installation that is compiled in a way that does not work well with embedded Python applications. | ||
+ | |||
If the above command does not find anything but " | If the above command does not find anything but " | ||
Line 91: | Line 99: | ||
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. | ||
+ | for embedded applications, | ||
+ | |||
+ | 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:// | ||
+ | * sudo tar xzf Python-2.7.15.tgz | ||
+ | * cd / | ||
+ | * sudo ./configure -enable-optimizations -enable-unicode=ucs4 -enable-shared | ||
+ | * sudo make install | ||
+ |
python_install.txt · Last modified: 2023/01/08 12:24 by g00r00