how to install unixodbc on linux - 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.

Related

Errors in installing Homebrew and git

I am trying to work on a linux based external server. I need to install Homebrew and anaconda. So, I have installed anaconda as usual in my home directory. But when I tried to install homebrew, I get the following errors:
fatal: packfile .git/objects/pack/pack-9d2d97f367d3ebfa65a3b708b2d87333a8eb2bf0.pack cannot be mapped: Cannot allocate memory
error: https://github.com/Homebrew/homebrew-core did not send all necessary objects
Failed during: git fetch --force origin refs/heads/master:refs/remotes/origin/master
Ok, then I tried to install git using conda. However, I have encountered another error, which is:
libgcc_s.so.1 must be installed for pthread_cancel to work
I tried to install the GCC library using this link How do I compile and run GCC 4.9.x?
But then again, I encountered the problem of "cannot allocate memory". As I am working on an external cluster with many CPUs, I assume I have enough memory and space because I am working with many genomes.
Also, I cannot used sudo as I am not authorised to do that. I also tried to get the apt-get command but it shows that apt-get command not found.
Can anybody please help me to solve these problems?
Thank you.

npm install dtrace-provider error: NOT FOUND make

I got error when i install dtrace-provider on my labtop.
My environment is windows 10 sub linux system on Ubuntu 18.04 LTS, and i am using zsh.
Dose anyone know how to fix this?
I have been run as administrator for this Windows Terminal(Preview) version.
There is no prebuild binary provided for the platform + node version combo, it retreats back to building from source with node-gyp, which then throws an error because make binary is not found. make is required for building from source from what the source looks like
solution: install make and all the requirements for this lib
https://github.com/chrisa/node-dtrace-provider#troubleshooting-build-issues

oprofile binary build error - (liberty library not found)

After download the oprofile source code on my host ( Ubuntu 15.04 ),
for some reasons, I need to build the binary my own.
I enter the following command to build the binary
./configure && make && make install
And got the error message
configure: error: liberty library not found
By searching around the fix to this error, I found a package needs to be installed.
sudo apt-get install binutils-dev
However, the same error still appears even thought the package has been installed successfully.
Is there anything I can check with?
Thanks
Just found the answer.
Please follow the link:
Configuration error: Iberty library not found
This answers my question.

Path to Node.js Installation in Ubuntu

I am new to Ubuntu (linux).
I installed node.js for a project.
Recently I am getting this error on npm install.
Error: "pre" versions of node cannot be installed, use the --nodedir flag instead
I found a stack link below as
Node pre error
Under the solution it asks for the directory where node.js is installed and currently i am clueless where the nodejs is installed.
Please help me on how can I locate the directory where node.js is installed.
Quick explanation
You have a version with -pre. Get rid of it and put the latest stable version from nodejs.org.
You can use which to locate a command. For your case, type which nodejs.
EDIT: The answer from your link is referring to the path of node source code, not the nodejs binary.
On Ubuntu, most software can be installed from the built-in repositories. This updates it for you (even if it's sometimes a bit outdated).
To install the stable version the Ubuntu way, install the nodejs-legacy package (after uninstalling your version):
sudo apt install nodejs-legacy
To use the latest, refer to https://askubuntu.com/a/663052/438156 (my answer), or https://askubuntu.com/a/711976/438156 (bit more involved, more the Ubuntu way).

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.

Resources