Installing tesseract 3.04 on lubuntu 18.04 - tesseract

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.

Related

Upgrading sqlite3 on Centos 7

Does anyone know how to upgrade sqlite3 on Centos7. The repos only have up to version 3.7.
I downloaded the source code and compiled. Replaced binaries. If I type sqlite/sqlite3 --version then it's 3.31.
If I run rails then it's stuck at 3.7.
DNF is stuck on 3.7 too.
I read that Centos7 stays at this version. There's no easy upgrade path to Centos8 without reinstall so trying to avoid that.
Uninstall the package from Centos. Then, do a normal source install of sqlite afterwards.

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.

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.

apt-get package in 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.

Satchmo install on a mac using virtualenv

I have virtualenv set up and working correctly on my mac os (leopard) running python 2.6 & django 1.2.3. I want to install Satchmo but I haven't found solid instructions for a mac install using virtualenv. Can anyone help regarding this? thanks.
If you're using buildout with virtualenv then try this: https://github.com/shywolf9982/satchmo-buildout
Of course installing newest XCode ie. 3.1 or 3.2 is a must..
Unfortunatelly compiniling stuff on Mac can give you the creeps... My collegue and I, were fighting 12h with installation of geodjango on Spatialite database, and we didn't make it after all :)
If you're not using buildout then just use macports for installing modules listed in above repo's buildout.cfg file.
Good luck!
This Satchmo Project post contains the instructions I follow on Snow Leopard. I use Homebrew and/or MacPorts in lieu of the Debian package tools.