User Tools

Site Tools


python_install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
python_install [2018/01/01 14:49] – [Troubleshooting] g00r00python_install [2019/02/02 14:38] – [Troubleshooting] g00r00
Line 90: Line 90:
 The most common issue in Unix based platforms is that a link is not created to the Python library.  Mystic expects to find "libpython2.7.so.1.0" on Linux and "libpython2.7.dylib" in macOS, so if your Python library is stored under a different name then you need to make a symbolic link. The most common issue in Unix based platforms is that a link is not created to the Python library.  Mystic expects to find "libpython2.7.so.1.0" on Linux and "libpython2.7.dylib" in macOS, so if your Python library is stored under a different name then you need to make a symbolic link.
  
-Like the Windows version, another issue some people have ran into is that their bit level of Python does not match that of Mystic.  This can cause crashes when a script is attempting to execute.  The issue seems more prominent in macOS where the owner may not be aware of their OS bit-level, or their OS has a mix and match of 32-bit and 64-bit softrware.  This seems like common on the average Linux installation.+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.  The issue seems more prominent in macOS where the owner may not be aware of their OS bit-level, or their OS has a mix and match of 32-bit and 64-bit software and it is not clear what version they should be using. 
 + 
 +**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.**  The most notable issue when this is true is that some modules give an error when trying to initialize.  The most popular Linux OS for Mystic is Ubuntu, and unfortunately it is one of those operating systems. 
 + 
 +The solution to this issue is to recompile Python properly on your own.  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://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz 
 +cd /usr/src/Python-2.7.15 
 +sudo ./configure --enable-optimizations --enable-unicode=ucs4 --enable-shared 
 +sudo make install 
 + 
 +CREATE LINK TO PYTHON: 
 +sudo ln -s /usr/local/bin/python2.7 /usr/bin/python 
python_install.txt · Last modified: 2023/01/08 12:24 by g00r00

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki