apt-get package in virtualenv - virtualenv

Hi i am trying to install python imaging library in a virtual environment in linuxmint 17.1.
I tried this link.
Decoder JPEG not available error when following Django photo app tutorial
I also posted this question but no answer till now.
https://stackoverflow.com/questions/31473765/install-libjpeg-dev-in-virtualenv-ubuntu
EDIT:
I am installing Shoop in my linuxmint system in a virtualenv. This program requires both Pillow and PIL to be installed in a virtualenv. I installed Pillow and PIL in virtual environment but it also requires following libraries to be installed in virtualenv.
libjpeg-dev
libpng12-dev
zlib1g-dev
I installed these libraries via apt-get.
sudo apt-get install libjpeg-dev zlib1g-dev libpng12-dev
Since apt-get installs packages system wide. How to use them in my virtualenv.
Also if there is a way to separately install them in virtualenv.

I'd say no.
Everything you install through apt-get is OS related.
As Audrius Kažukauskas commented and Virtualenv documentation docs states:
virtualenv is a tool to create isolated Python environments.
The basic problem being addressed is one of dependencies and versions,
and indirectly permissions.

Related

How to install pgAdmin 4 on Fedora 30?

The RPM given on the official website does not have the pgadmin4 package for Fedora 30.
Is there a known workaround?
Edit: Relevant packages are now included in the RPM, so there is no issue anymore.
You can use the link that points to the x64 package:
sudo dnf -y install https://download.postgresql.org/pub/repos/yum/reporpms/F-30-x86_64/pgdg-fedora-repo-latest.noarch.rpm
then you will be able to dnf search and install pgadmin4 normally.
Apparently there is a mistake in the docs for that distro.
You'd have to wait until Devrim gets around to rolling RPMs for Fedora 30.
The alternative is to build the software from source.
EDIT: In the meantime, packages for Fedora 30 are available.

Installing tesseract 3.04 on lubuntu 18.04

I want to install tesseract-ocr 3.04 on one of my Ubuntu/Lubuntu 18.04 test setups (which is running fine on our lubuntu16.04 test setups). If I simply install tesseract-ocr via 'sudo apt install tesseract-ocr' etc. it will install tesseract 4.0.0 beta.
With this I am seeing a lot of weird behavior and would like to run tesseract-ocr 3.04 with the same traineddata etc as it is running fine on our older test setups.
How can I force to install an older version of tesseract-ocr.
Thanks, Martin
Download Tesseract 3.04 from https://launchpad.net/ubuntu/+source/tesseract/3.04.01-6.
Then to install it in $HOME/local:
./autogen.sh
./configure --prefix=$HOME/local/
make
make install
I realise this post is quite old, so if you have found a better way please share your method.

how install rvm on RHL7 using centos repo

How to install rvm(ruby) on RHL7 using centos repo.
I know if we are using centos repository we should be using centos OS and not RedHat, but we have a proprietary software that require Redhat.
when I try to install ruby 1.93 using rvm I got this:
rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: redhat/6/x86_64/ruby-1.9.3-p551.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for redhat.
Unable to locate SystemId file. Is this system registered?
Our client does not have registered system with redhat, So I did configure centos repository.
But how can I tell RVM to use this centos repository?
I managed the problem running:
rvm autolibs read-only
In that way rvm do not try to download the dependencies from redhat. But it tell us what is missing, so we can install what is missing manually with yum install from centos repository.
RedHat uses the concept of software collection to offer update packages for Ruby, Python, etc:
softwarecollections
For your case, they have software collection for Ruby193 and Ruby22.
On each page you will find instructions on how to use it.

Yocto (Intel IoT Image), installing packages

Good day.
In debian I can to run:
sudo apt-get install python-opencv python-serial python-pyparsing python-numpy python-wxgtk2.8
How to do it on yocto (Intel IoT Image)?
1) build from source it all with building from source all dependencies?
2) is a good solution - install apt-get on yocto?
3) Maybe, I can to use opkg for installing it, (but in "opkg list" I can't see, for example, python-wxgtk2.8 ), where can I find good repository, default repository is very poor?
Yes you can install packages using opkg. You can use the repos. Refer this excellent blog from Alex on package configuration.

How to correctly install bucardo

I am new to bucardo and I am trying my first install. I have postgresql-9.1 installed.
After installing all dependencies I have downloaded Bucardo-5.1.1.tar file, extract it and sucessfully install it using make according to bucardo site instructions.
The problem starts when I try to launch "bucardo_ctl". The bucardo_ctl script is not installed with bucardo-5.1.1 install script and ubuntu says I need to run "apt-get update bucardo" for installing bucardo_ctl.
The problem is that when I install bucardo from ubuntu repositories, it also installs postgresql-8.4, and bucardo from repository is version 4.
How can I install bucardo_ctl from bucardo-5.1.1?
Thank you very much
Regards
Paulo