Error installing RODBC package - linux

Iam trying to install RODBC on my Cloudera server but Iam getting an error when downloading the package... is there anyone that can tell me what Iam doing wrong?
Below my logs:
http://pastebin.com/s2b1y0Xr

/usr/bin/ld: cannot find -lcurl .. ... : ld returned 1 exit status
-lcurl means libcurl.so : Provided by libcurl4-gnutls-dev, libcurl4-nss-dev, libcurl4-openssl-dev
https://packages.debian.org/search?suite=default&arch=amd64&searchon=contents&keywords=libcurl.so
If e.g. CentOS, RHEL : libcurl-devel

Solved by installing the package via yum
sudo yum install R-RODBC

Related

I am facing issues while installing libsctp on redhat

I am trying to install libsctp on redhat. There is a chain of dependencies. How to install all libraries/dependencies in this group?
configure: error: --with-sctp given but cannot find libsctp [root#localhost libfixbuf-1.7.1]# cd ../Downloads/ [root#localhost Downloads]# rpm -ivh libsctp1-1.0.11-4-mdv2012.0.i586.rpm warning: libsctp1-1.0.11-4-mdv2012.0.i586.rpm: Header V3 DSA/SHA1 Signature, key ID 26752624: NOKEY Preparing... ########################################### [100%] package libsctp1-1.0.11-4.i586 is already installed [root#localhost Downloads]#
I am trying to install libfixbuf using ./configure --with-sctp The error thrown says that sctp is not installed. though it is installed
Solved the issue.. Installed lksctp-tools-1.0.16. That solved the problem
Solved the issue.. Installed lksctp-tools-1.0.16. That solved the problem

/usr/bin/ld: cannot find -lXext Dependencies issue

I am installing ghostscript on my Ubuntu 14.04 server. I am getting error for make command due to dependencies :
/usr/bin/ld: cannot find -lXext collect2: error: ld returned 1 exit status make: *** [bin/gs] Error 1
But I have libraries:
locate libXext.so
/usr/lib/x86_64-linux-gnu/libXext.so.6
/usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
Are these sufficient or I need some more libraries?
Run: apt-get install libxext-dev
It worked for me.
I tried to install Ghostscript 9.18 Source version
You need to install libxext-dev package.
Run: apt-get install libxext-dev

R package installation in Linux

I am trying to install a R package in Ubuntu using the following commands:
R CMD INSTALL rpart_4.1-5.tar.gz
install.packages("/home/rpart_4.1-5.tar.gz", repos = NULL, type="source")
* installing to library '/R/library'
* installing *source* package 'rpart' ...
** package 'rpart' successfully unpacked and MD5 sums checked
** libs
sh: make: command not found
ERROR: compilation failed for package 'rpart'
* removing '/R/library/rpart'
I have GCC 4.8.2 installed and the command gcc -v provides the following output:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/tools/stow/gcc-4_8_2-2.x86-64.linux.centos.5/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.8.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.8.2/configure --prefix=/mnt/gcc/buildir/gcc-4.8.2
Thread model: posix
gcc version 4.8.2 (GCC)
Last time I face the same issue, installing GCC (same version) solved it (posted a similar query on Stackoverflow on this topic). However, this time it is not working. Could someone please let me know what is causing this issue.
UPDATE: We are trying to manually install the dependencies to see if it works. We have installed Make and GCC 4.8.2:
However, I still get the following error:
* installing to library '/opt/vertica/R/library'
* installing *source* package 'rpart' ...
** package 'rpart' successfully unpacked and MD5 sums checked
** libs
cc -std=gnu99 -I/opt/vertica/R/include -DNDEBUG -I/usr/local/include -fpic -c anova.c -o anova.o
make: cc: Command not found
make: *** [anova.o] Error 127
ERROR: compilation failed for package 'rpart'
* removing '/opt/vertica/R/library/rpart'
Are there any other dependencies that we need to install apart from Make and GCC?
Your system doesn't have make utility for compilation.
Please execute following command to install make in your system.
sudo apt-get install build-essential
If you just do
sudo apt-get install r-base-dev
you all the key dependencies relevant for R package building which is what you want here. This includes the compiler, make etc as part of built-essential as well as specific libraries needed by R. There is a reason we created this package :)
If your machine does not have permanent internet access, look for previously-asked questions about "apt-get without internet access" etc.

Trying to build rdiff-backup, getting error "/usr/bin/ld: cannot find -lrsync"

I am trying to build the latest version of rdiff-backup on a CentOS 6 x64 box. (linode).
I am getting the error as follows:
/usr/bin/ld: cannot find -lrsync
I have searched for a rsync.so file with no results.
I have rsync already installed. I can't find an rsync-devel package to install with Yum using the standard repositories.
Any clues?
Thanks!
You need to install librsync:
yum install librsync-devel

"/usr/bin/ld: cannot find -lz"

I am trying to compile Android source code under Ubuntu 10.04. I get an error saying,
/usr/bin/ld: cannot find -lz
Can you please tell me how can I fix it? What does cannot find -lz mean? Here's the full error message:
external/qemu/Makefile.android:1101: warning: overriding commands for target `external/qemu/android/avd/hw-config-defs.h'
external/qemu/Makefile.android:933: warning: ignoring old commands for target `external/qemu/android/avd/hw-config-defs.h'
host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so)
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] Error 1
And my GCC version output:
scheung#scheung-virtual-box:/media/EXTDIV/mydroid$ gcc --version
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I already have the zlib1g-dev library installed:
$ sudo apt-get install zlib1g-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
zlib1g-dev is already the newest version.
(I get that from this link.)
I had the exact same error, and like you, installing zlib1g-dev did not fix it. Installing lib32z1-dev got me past it. I have a 64 bit system and it seems like it wanted the 32 bit library.
For x64 install zlib1g-dev.
sudo apt-get install zlib1g-dev
I don't need all the x86 libs ;)
sudo apt-get install libz-dev in ubuntu.
I just encountered this problem and contrary to the accepted solution of "your make files are broken" and "host includes should never be included in a cross compile"
The android build includes many host executables used by the SDK to build an android app.
In my case the make stopped while building zipalign, which is used to optimize an apk before installing on an android device.
Installing lib32z1-dev solved my problem, under Ubuntu you can install it with the following command:
sudo apt-get install lib32z1-dev
I had the exact same error, Installing zlib-devel solved my problem,
Type the command and install zlib package.
On linux:
sudo apt-get install zlib*
On Centos:
sudo yum install zlib*
Another possible cause: You've passed --static to the linker, but you only have a dynamic version of libz (libz.so), but not a version that can be statically linked (libz.a).
Try one of those three solution. It must work :) :
sudo apt-get install zlib1g-dev
sudo apt-get install libz-dev
sudo apt-get install lib32z1-dev
In fact what is missing is not the lz command, but the development files for the zlib library.So you should install zlib1g-devlib for ex to get it.
For rhel7 like systems the package is zlib-devel
It means you asked it to include the library 'libz.a' or 'libz.so' containing a compression package, and although the compiler found some files, none of them was suitable for the build you are using.
You either need to change your build parameters or you need to get the correct library installed or you need to specify where the correct library is on the link command line with a -L/where/it/is/lib type option.
This will show you clues about why the linker doesn't want the installed library:
LD_DEBUG=all make ...
I had the same problem in a different context: my system /lib/libz.so.1 had unsatisfied dependencies on libc because I was trying to relink on a different version of the OS.
for opensuse 12.3 (Dartmouth) (i586)
sudo zypper install zlib-devel zlib-devel-static
Others have mentioned that lib32z-dev solves the problem, but in general the required packages can be found here:
http://source.android.com/source/initializing.html
See "Installing required packages"

Resources