delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/17/01:59:01

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4F8D066B.2060900@tlinx.org>
Date: Mon, 16 Apr 2012 22:58:03 -0700
From: Linda Walsh <cygwin AT tlinx DOT org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
CC: De-Jian Zhao <dejian DOT zhao AT gmail DOT com>
Subject: Re: Can RPM packages be installed into Cygwin?
References: <4F7FEF5B DOT 5060206 AT gmail DOT com>
In-Reply-To: <4F7FEF5B.5060206@gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

De-Jian Zhao wrote:

> Dear all,
> 
> I noticed that there is a command - rpm - under Cygwin 1.7. Does that 
> mean RPM packages can be installed into Cygwin?
> 
> I tried to install ncbi-blast-2.2.26+-3.i686.rpm (see: 
> ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/ ) into 
> Cygwin 1.7.13 with the command "install -i 
> ncbi-blast-2.2.26+-3.i686.rpm". However, error message appeared as 
> below. libc.so.6, 
> libdl.so.2,  libm.so.6,  libnsl.so.1, and  libz.so.1. Where can I get 
> these libs? Thanks!
> 
> $ rpm -i ncbi-blast-2.2.26+-3.i686.rpm
> error: Failed dependencies:
>         /usr/bin/perl is needed by ncbi-blast-2.2.26+-3
>         libbz2.so.1 is needed by ncbi-blast-2.2.26+-3
>         libc.so.6 is needed by ncbi-blast-2.2.26+-3
>         libc.so.6(GLIBC_2.1.3) is needed by ncbi-blast-2.2.26+-3
>         libc.so.6(GLIBC_2.2) is needed by ncbi-blast-2.2.26+-3
>         libc.so.6(GLIBC_2.3) is needed by ncbi-blast-2.2.26+-3

.....
On Tue, Apr 10, 2012 at 02:03:29PM +0800, De-Jian Zhao wrote:

 > It seems that the compilation under Cygwin is more complicated than
 > expected.
==========================================================

This has nothing to do with cygwin.

It is 'rpm' looking for installed dependencies in the rpm database.

Since everything was installed with 'setup.exe' which keeps it's own
'database', rpm thinks nothing is installed.

You need to make sure the versions required by the rpm are installed by setup,
then you can build from a ncbi-blast-2.2.26+-3.src.rpm
                                                ^^^

The i686.rpm package is prebuilt for "some" platform (you would have to know
which from the download -- i.e. one built for suse won't necessarily run on 
redhat, or ubuntu...  or other combinations.   Ones that do will be statically
built and will be usable on some range of OS-versions of some particular OS.
Since rpm is a linux thing, it would be built for the linux OS... so 
double-screw.  Wrong OS, wrong executable format...etc...   look for a 
corresponding .src. rpm, OR as someone else already suggested, look for the
'tar' that the is included in the ".src".  -- in fact, if you have the .src.,
usually the .tar. file they build from is packed into it (then patches and OS
specific stuff is applied), so you can often just take the tar from your src.rpm
and move it to cygwin, and run it directly if it has a "configure" script.

it might also have something like "bootstrap.sh" (or bootstrap something) that 
will produce a configure script -- that will usually allow you to build an 
executable that will work on your platform (in this case cygwin) -- but you
will still have to have _needed_ dependencies installed (like development 
packages from cygwin for some of the above).

All of those packages may not be needed -- dependencies are often based
on what options you select in configure (configure --help tells you all it's 
options).  Sometimes you don't need all the options the 'default' rpm builds
with making life simpler.

Compilation, period, other than on the system the package was designed for is
never completely trivial, but configure makes it nearly so if it is used --
most packages these days have such a script -- rpm packages just have pre-built
some pre-configured image for distribution -- may not be optimal for your needs
nor is it likely to be optimized for your machine.

Hope this was of some help.
Good luck!

Linda


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019