User talk:AbdealiJK/file-metadata
Jump to navigation
Jump to search
Fedora/CentOS installation instructions
[edit]It would be great if someone could add the required packages for Fedora/yum (Like how it's done for Ubuntu/apt-get right now). I mainly use Ubuntu and don't know the package names to use for that nor do I have a system to test it in. AbdealiJK (talk) 04:47, 12 June 2016 (UTC)
- Um, can't build dlib: '/usr/bin/ld: /root/.pyenv/versions/2.7.8/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC' during compiling. Ideas? --Zhuyifei1999 (talk) 14:56, 14 June 2016 (UTC)
- Hm, I think this is happening becase you don't have the correct boost installed. You had mentioned that CentOS 6 uses python 2.6 by default, so the
boost-devel
being installed by yum will have python bindings (boost.python) for python 2.6. Which is probably causing the issue. The only solution I can think of is to compile boost from source inside the virtualenv :/ Or get a yum repo with boost compiled with python 2.7.8 --AbdealiJK (talk) 16:04, 14 June 2016 (UTC)- Indeed, boost-devel has a dependency on boost-python :/ --Zhuyifei1999 (talk) 00:49, 15 June 2016 (UTC)
- Hm, I think this is happening becase you don't have the correct boost installed. You had mentioned that CentOS 6 uses python 2.6 by default, so the
Using the system's package manager
[edit]Why do we need perl openjdk-7-jre python-pip python-setuptools
here?
Also I removed some packages for the pip case (matplotlib, etc.) since pip installs them. Or do we want to mix the two ways of installation? --DrTrigon (talk) 23:50, 25 June 2016 (UTC)
openjdk-7-jre
is needed for zxing,pip/setuptools
is needed for Step 2, where pip is used to install file-metadata.perl
isn't required though. --AbdealiJK (talk) 02:24, 26 June 2016 (UTC)- Ok, I see - my testing system comes with
openjdk-7-jre python-setuptools
pre-installed. I removedperl
. Thanks for clarification! --DrTrigon (talk) 10:50, 26 June 2016 (UTC)
- Ok, I see - my testing system comes with
Installing on ubuntu-base-xenial chroot environment
[edit]Right now trying pypi method:
openjdk-7-jre
is never available, even on desktop;openjdk-8-jre
is available insteadlibboost-python-dev
&python-virtualenv
requiresuniverse
repo.
These shouldn't be a problem for most users though. --Zhuyifei1999 (talk) 13:10, 26 June 2016 (UTC)
- Any ideas on how to handle versions of packages ? I find it would be difficult to figure out the correct version. --AbdealiJK (talk) 07:05, 27 June 2016 (UTC)
- Via
default-jre
?
- Via
xenial $ apt-cache depends default-jre default-jre Depends: default-jre-headless Depends: openjdk-8-jre Suggests: default-java-plugin trusty $ apt-cache depends default-jre default-jre Depends: default-jre-headless Depends: openjdk-7-jre Conflicts: default-jre:i386 precise (this is tools-exec-1201, I hardly use precise anymore) $ apt-cache depends default-jre default-jre Depends: default-jre-headless Depends: openjdk-6-jre debian jessie (this is encoding03.video.eqiad.wmflabs, I don't think I have a local install of jessie) $ apt-cache depends default-jre default-jre Depends: default-jre-headless Depends: openjdk-7-jre
--Zhuyifei1999 (talk) 10:59, 27 June 2016 (UTC)
- For yum I don't see an obvious candidate. CentOS 6 has openjdk from java 1.6.0 to 1.8.0 --Zhuyifei1999 (talk) 11:06, 27 June 2016 (UTC)