libsdl2 package not installing on Ubuntu - linux

Tried installing the package libsdl-image-2.0-0 from a .deb, which was a missing dependency for another package. It itself also had a bunch of dependencies I had to install, but anyway, NOW when I try to install it, I get this error: http://pastebin.com/YSnuxTNB
Running Ubuntu Precise, x86_64. No idea what the problem might be. Does anyone know how to resolve this?

Related

how to install unixodbc on linux

I am trying to install unixodbc on linux (clean install of ubuntu 20), but the directions here are not working for me. When I get the step to ./configure , I get an error saying "configure: error: odbc_config not found (required for unixODBC build)".
Given that this is a popular package and the instructions on the main website don't work, I'm wondering if someone in that community could help me install it?
I tried installing it directly from a .deb file which appeared to work with 0 exit status, but I am still getting an error when I try to run odbc_config, which is how they say to verify the installation. And which unixodbc returns nothing.
Any help installing this package on linux would be greatly appreciated!
Note: On mac, brew install unixodbc works just fine. But I am running into problems when using the compiled binaries from that installation on a linux machine -- it is giving me a mysterious file not found error when I try to reference it, even though it is there, so I believe I need to compile it on linux in order to get it to work.
EDIT: I tried installing from source, but then I got a different error: libpq library version = 9.2 is required. Is there any way to install this package on ubuntu without having to set all kinds of special flags?
EDIT2: I was able to get the installation process to complete after installing libpq-dev.

How to differentiate between manually installed packages and dependencies on linux

I am a noob in linux and right now I am using a raspberry pi with raspbian to learn about it. I am trying the commands to install and uninstall packages (apt) but i have the following doubt.
Is there a way to differentiate between packages that I have installed and packages that were automatically installed because they are dependencies?
Thanks
Is there a way to differentiate between packages that I have installed and packages that were automatically installed because they are dependencies?
Probably not, and that should not matter. Suppose you have some package foo that has been installed as a dependency for bar. A few days latter, you might want to install foo (and since it is already installed, nothing will happen).

error: 'qAbs' was not declared in this scope

When I tried to install qwt manually, I got this error. How can I fix it? Thanks ahead. By the way, I also tried to install qwt by using command yum install, but after that I can't find where the qwt was installed.
rpm -ql qwt will tell you what files it installed. Please note that it's customary for RPM-based distributions to have -dev packages, so you're likely looking for the qwt-dev package.
The minimum information you have to give are Qt and Qwt version.

error when trying to install libtmcg "configure: error: libgmp >= 4.1 is needed"

I've tried installing different libgmp's from ubuntu app center and I tried installing it manually from http://gmplib.org/#DOWNLOAD but I can't get this to configure it's an old library and I'm trying to run it on the latest version of ubuntu but I didn't think I'd have problems but I'm new to trying to use libraries like this any help would be greatly appreciated.
I've had these kind of errors installing dependencies before, and I realized that you must to force the installation of such pack having it... you didn't mention the version of your Ubuntu, so I'm assuming you're working with 12.10. But if not you always can look up for the version you are running on.
Just download the pack from here, of course, depending on your architecture, and after that run sudo apt-get -f install in order to force the installation of broken packs.

Yi failed to install

Would love to try the Yi editor, but unfortunately, it keeps failing during the installation.
First I get:
> cabal install yi
haskell-src-exts-1.13.0 failed during the configure step. The exception was:
ExitFailure 1
yi-0.6.5.0 depends on haskell-src-exts-1.13.0 which failed to install.
then when I try to install haskell-src-exts I am stumped by this:
setup: The program happy version >=1.17 is required but it could not be found.
cabal: Error: some packages failed to install:
haskell-src-exts-1.13.0 failed during the configure step. The exception was:
ExitFailure 1
installing happy cabal install happy (version 1.18.9 at that) does not help, as it still produces the error above!
I am trying to get this going on ArchLinux. Also, Windows installation didn't work either.
Any ideas?
cabal installs programs to ~/.cabal/bin (on Unix; no idea about Windows) if they are not already installed, and does not warn you to add it to your $PATH; it also (unless you have the latest unreleased version, built from its repo) does not know that it has done so, because it only tracks libraries, not executables. You will need to manually add $HOME/.cabal/bin to your $PATH so that it will be found
(edit be pedantic)
On ubuntu I installed happy using apt-get instead of through cabal, which worked.
Here is what I have done to install Yi with GTK+ under ArchLinux.
First, I tried cabal install yi and I got the same error as you.
To solve this error, I installed happy using this command:
yaourt -S happy
Then, I got another error because the alex package was needed. So, I installed it with:
yaourt -S alex
After that, I got some errors because of gtk2hs packages missing. I installed them with:
yaourt -S haskell-cairo haskell-glib haskell-gtk haskell-pango
Finally, I was able to install Yi with:
cabal install yi -fvty -fpango
I had the same issue in installing hprotoc which has a dependency on haskell-src-exts. The issue I believe was that I was running the sudo command which was modifying the path. When I took the recommended action in the following Q&A, it resolved the issue of finding happy.
sudo changes PATH - why?
Leksah uses Yi as a component, try installing leksah instead. I had similar error messages at one point, the haskell-src-exts error is due to running out of memory. Reboot your computer, have nothing else running except the console, and try again.

Resources