libpq-dev Unable to locate a Java Runtime - psycopg2

I used sudo apt install libpq-dev python3-dev to install libpq-dev, but I got a puzzling error:
The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.
I read through the docs, and didn't see anything about a JRE, and people at work say I shouldn't need a JRE for this.
Do I really need a JRE for libpq-dev?
If so, what version? If not, what am I doing wrong?

Related

python3-yaml needs dependency python3-yaml

I am trying to install lutris on SteamOS using Debian, to do so I require python3-yaml; which is becoming a nightmare to install. I found the debian file for python3-yaml online and have checked that I have installed all the dependencies required however I always end up with a strange error stating that the dependency "python3-yaml" is not satisfiable and I am unsure if this is a glitch in the software I am using or if python3-yaml actually needs python3-yaml to be installed.
I have attempted using normal yaml however that has not contributed anything towards my situation.
Could someone suggest a method for me to use to install python3-yaml and give me a few steps for doing it, thank you kindly.
To resolve this
dpkg -i python3-yaml.deb
apt-get install -f

PhpStorm Installation issue on Ubuntu 14.04

I am back here again with one more issue that I am having installing PhpStorm on my Ubuntu 14.04. To do so I followed the following steps:
Step 1. sudo apt-get purge openjdk* which gave me a long list mostly saying Package is not installed, so not removed. A few examples:
Package 'openjdk-7-dbg' is not installed, so not removed
Package 'openjdk-7-doc' is not installed, so not removed
...
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Step 2: sudo add-apt-repository ppa:webupd8team/java which ended up saying this:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
oracle-java7-set-default : Depends: oracle-java7-installer but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Step 3: Despite those error messages popped up I went ahead and ran sudo apt-get update which executed OK.
Step 4: Tried to run sudo apt-get install oracle-java7-installer which again popped up a lot of negative remarks!
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
oracle-java7-installer : Depends: java-common (>= 0.24) but it is not installable
Recommends: gsfonts-x11 but it is not installable
E: Unable to correct problems, you have held broken packages.
So I did not go further with rest of the following commands:
sudo apt-get install oracle-java7-set-default
wget http://download-cf.jetbrains.com/webide/PhpStorm-7.1.3.tar.gz
tar -xvf PhpStorm-7.1.3.tar.gz
cd PhpStorm-133.982/bin
./phpstorm.sh
I have no idea what is going wrong! Somebody please help this absolute newbie to install it.
On another note, if PhpStorm fails to install somehow on my PC, please suggest me a good software which runs on Ubuntu with an inbuilt SASS compiler so that I do not have to run a command every time from terminal? And it would be even better if that software I can get for free! PhpStorm is only a 30-day trial.
EDIT
Strange, I'm using PhpStarm on Ubuntu 14.04 and ant works fine. IntelliJ IDEs are really great.
I have these Java from the same repo you are using.
java-common-0.51
java-wrappers-0.1.27
oracle-java7-installer-7u80+7u60arm-0~webupd8~1
Let's try to purge all the Java packages from you system and then install the Oracle Java again.
Use dpkg -l | grep java to discover all the installed java-related packages.
Then, use apt-get purge on all of them.
Skip the javascipt packages of course.
Then, try to install oracle-java7-installer again. I hope it will be installed correctly.
To install Phpstorm in Ubuntu just follow these steps
1.Run sudo apt install snapd
2.Then sudo snap install phpstorm --classic
3.Then type phpstorm in shell and press enter to launch Phpstorm
Read more about these here

Can't install mono-gmcs package

I am trying to install the mono-gmcs package on my virtual machine running Kali Linux, but receive the output
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mono-gmcs : Depends: mono-mcs (= 3.12.1-0xamarin1) but 4.0.4.1-0xamarin1 is to be installed
E: Unable to correct problems, you have held broken packages.
I am using the command sudo apt-get install mono-gmcs to install it.
It says, that mono-gmcs depends on mono-mcs (3.12.1-0xamarin1), which currently is installed via 4.0.4.1-0xamarin1. You have versions conflict. Downgrading xamarin will solve it sudo apt-get install packagename=version
If you are going to choose Mono 4.* via mono-complete, say goodbye to many old packages such as this one. They are obsolete and you don't need them any more.
The compilers have been unified to a single mcs.
Try this
sudo apt-get install mono-complete=*
It brings the latest version.

Android Studio Installation -Unable to run mksdcard SDK tool. on 32 bit Ubuntu 12.10

So, I am trying to install Android Studio in
OS : UBUNTU 12.10, 32 bit.
And I tried installing it for 3-4 times each time it got stuck due to slow internet connection and showing Connection Lost in the terminal.
Now , this time when I again did
./studio.sh
it shows
Unable to run mksdcard SDK tool.
One common reason for this failure is missing required libraries
Please fix the underlying issue and retry.
I saw various posts which shows this occurs in 64 bit OS and installing libraries using
sudo apt-get install ia32-libs
or
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
will install required 32 bit libraries , but I am already on a 32 bit OS .
and when I try above command , I get
E: Package 'ia32-libs' has no installation candidate.
Software center also shows negative result:
So, the point is has anyone came across this in a 32 bit UBUNTU 12.10 OS .
Any workaround will be greatly appreciated .
Edit 1
Output when I try to install mentioned libraries for Ubuntu.
yogeshwardancharan#ubuntu:~/Android/Sdk/tools$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package lib32bz2-1.0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package lib32ncurses5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package lib32stdc++6 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package lib32z1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'lib32z1' has no installation candidate
E: Package 'lib32ncurses5' has no installation candidate
E: Package 'lib32bz2-1.0' has no installation candidate
E: Package 'lib32stdc++6' has no installation candidate
In above output it is mentioned that package may be available from another source ...can someone please help , what that source may be ?
Is it possible to compile these libraries from source . If so , how can I do it ?
Thanks.
For me the answer was here http://tools.android.com/tech-docs/linux-32-bit-libraries
At the time of this answer, the required libraries are
$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1
Good luck!

Cannot install jpegoptim on Centos 6

I am trying to install jpegoptim on a CentOS 6 server. I have downloaded and unpacked the package but when I try to run ./configure from the jpegoptim-1.3.0 directory I get an error that says:
"cannot find libjpeg or you have too old version (v6 or later required)."
I have checked and I have libjpeg-turbo install, which should supercede libjpeg. I have not been able to find anything on the net about this issue. What am I doing wrong?
Thanks,
Rob
The configure script is looking for jpeglib.h which is in the libjpeg-turbo-devel package.
You may want to use yum to help you with what you are looking for. The following may get you what you need:
yum search libjpeg
yum install libjpeg*
Note I have the epel repository installed on my system too. So if the above don't give you what you want, you may need to install the epel repository first.

Resources