Linux Mint Türkiye
Yazılım => Yazılım Yükleme ve Kaldırma => Konuyu başlatan: Docea37 - 16 Eylül 2016, 20:00:18
-
merhaba
ubi reader kurulumu yapmak istedim ama hata veriyor. linux konusunda fazla bilgim yok bu konuda yardımcı olabilirmisiniz.
linuxmint-18-mate-64bit kullanıyorum.
$ sudo apt-get install liblzo2-dev
If it is available.
$ sudo apt-get install python-lzo
Else you will need to install from sources.
$ git clone https://github.com/jd-boyd/python-lzo.git
$ cd python-lzo
$ python setup.py install
*************************
$ git clone https://github.com/jrspruitt/ubi_reader
$ cd ubi_reader
$ sudo python setup.py install
docea37-K53SD ubi_reader # sudo python setup.py install
Traceback (most recent call last):
File "setup.py", line 3, in <module>
from setuptools import setup,find_packages
ImportError: No module named setuptools
docea37-K53SD python-lzo # python setup.py install
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
running install
running build
running build_ext
building 'lzo' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/lzo -I/usr/include/python2.7 -c lzomodule.c -o build/temp.linux-x86_64-2.7/lzomodule.o
lzomodule.c:34:20: fatal error: Python.h: Böyle bir dosya ya da dizin yok
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
-
python --version
çıktısına bakalım.
-
Python 2.7.11+
-
sudo apt install libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libffi-dev
dedikten sonra tekrar denenebilir.
-
merhaba biraz geç oldu cevap yazmam kusura bakmayın üstad.
$ git clone https://github.com/jd-boyd/python-lzo.git (https://github.com/jd-boyd/python-lzo.git)
$ cd python-lzo
$ python setup.py install
bu komutta hala hata veriyor.
*************************
$ git clone https://github.com/jrspruitt/ubi_reader (https://github.com/jrspruitt/ubi_reader)
$ cd ubi_reader
$ sudo python setup.py install
bu komut sorunsuz çalıştı
-
komutu eksik yazmışım, tekrar çalıştırın.
sudo apt-get install libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libffi-dev
-
akşam deneyip sonucu yazarım teşekkür ederim üstad
Mesajlar Birleştirildi.
komutu eksik yazmışım, tekrar çalıştırın.
sudo apt-get install libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libffi-dev
teşekkürler usta oldu.
docea37[member=1843]Docea37[/member]-K53SD ~/python-lzo $ sudo python setup.py install
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
running install
running build
running build_ext
building 'lzo' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/lzo -I/usr/include/python2.7 -c lzomodule.c -o build/temp.linux-x86_64-2.7/lzomodule.o
lzomodule.c: In function ‘optimize’:
lzomodule.c:297:45: warning: pointer targets in passing argument 1 of ‘PyString_FromStringAndSize’ differ in signedness [-Wpointer-sign]
result_str = PyString_FromStringAndSize(in, len);
^
In file included from /usr/include/python2.7/Python.h:94:0,
from lzomodule.c:34:
/usr/include/python2.7/stringobject.h:62:24: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
PyAPI_FUNC(PyObject *) PyString_FromStringAndSize(const char *, Py_ssize_t);
^
creating build/lib.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/lzomodule.o -llzo2 -o build/lib.linux-x86_64-2.7/lzo.so
running install_lib
copying build/lib.linux-x86_64-2.7/lzo.so -> /usr/local/lib/python2.7/dist-packages
running install_egg_info
Writing /usr/local/lib/python2.7/dist-packages/python_lzo-1.12.egg-info