public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Can RPM packages be installed into Cygwin?
@ 2012-04-07  7:40 De-Jian Zhao
  2012-04-07  8:13 ` marco atzeri
  2012-04-17  5:58 ` Linda Walsh
  0 siblings, 2 replies; 28+ messages in thread
From: De-Jian Zhao @ 2012-04-07  7:40 UTC (permalink / raw)
  To: CygwinList

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. I tried to search for the missing libs using the setup.exe of 
Cygwin. It seems that some of them were not present, such as 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.0) is needed by ncbi-blast-2.2.26+-3
         libc.so.6(GLIBC_2.1) is needed by ncbi-blast-2.2.26+-3
         libc.so.6(GLIBC_2.1.2) 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
         libdl.so.2 is needed by ncbi-blast-2.2.26+-3
         libdl.so.2(GLIBC_2.0) is needed by ncbi-blast-2.2.26+-3
         libdl.so.2(GLIBC_2.1) is needed by ncbi-blast-2.2.26+-3
         libgcc_s.so.1 is needed by ncbi-blast-2.2.26+-3
         libgcc_s.so.1(GCC_3.0) is needed by ncbi-blast-2.2.26+-3
         libgcc_s.so.1(GLIBC_2.0) is needed by ncbi-blast-2.2.26+-3
         libm.so.6 is needed by ncbi-blast-2.2.26+-3
         libnsl.so.1 is needed by ncbi-blast-2.2.26+-3
         libpthread.so.0 is needed by ncbi-blast-2.2.26+-3
         libpthread.so.0(GLIBC_2.0) is needed by ncbi-blast-2.2.26+-3
         libpthread.so.0(GLIBC_2.1) is needed by ncbi-blast-2.2.26+-3
         libpthread.so.0(GLIBC_2.2) is needed by ncbi-blast-2.2.26+-3
         libpthread.so.0(GLIBC_2.3.2) is needed by ncbi-blast-2.2.26+-3
         librt.so.1 is needed by ncbi-blast-2.2.26+-3
         libstdc++.so.6 is needed by ncbi-blast-2.2.26+-3
         libstdc++.so.6(CXXABI_1.3) is needed by ncbi-blast-2.2.26+-3
         libstdc++.so.6(GLIBCXX_3.4) is needed by ncbi-blast-2.2.26+-3
         libstdc++.so.6(GLIBCXX_3.4.5) is needed by ncbi-blast-2.2.26+-3
         libz.so.1 is needed by ncbi-blast-2.2.26+-3
         perl(Archive::Tar) is needed by ncbi-blast-2.2.26+-3
         perl(Digest::MD5) is needed by ncbi-blast-2.2.26+-3
         perl(File::Temp) is needed by ncbi-blast-2.2.26+-3
         perl(File::stat) is needed by ncbi-blast-2.2.26+-3
         perl(Getopt::Long) is needed by ncbi-blast-2.2.26+-3
         perl(Net::FTP) is needed by ncbi-blast-2.2.26+-3
         perl(Pod::Usage) is needed by ncbi-blast-2.2.26+-3
         perl(constant) is needed by ncbi-blast-2.2.26+-3
         perl(strict) is needed by ncbi-blast-2.2.26+-3
         perl(warnings) is needed by ncbi-blast-2.2.26+-3


--
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

^ permalink raw reply	[flat|nested] 28+ messages in thread
* RE: Can RPM packages be installed into Cygwin?
@ 2012-04-10  0:30 Buchbinder, Barry (NIH/NIAID) [E]
  2012-04-10  5:48 ` De-Jian Zhao
  0 siblings, 1 reply; 28+ messages in thread
From: Buchbinder, Barry (NIH/NIAID) [E] @ 2012-04-10  0:30 UTC (permalink / raw)
  To: cygwin; +Cc: 'De-Jian Zhao', marco atzeri

De-Jian Zhao sent the following at Monday, April 09, 2012 11:12 AM
>> On 4/8/2012 5:10 AM, De-Jian Zhao wrote:
>>> On 2012-4-7 16:12, marco atzeri wrote:
>>
>>> Thanks, Marco. I was not trying to run a native linux apps, and instead
>>> tried to rebuild the app from source. The BLAST software provides the
>>> Build.sh and Check.sh scripts under the directory of
>>> ncbi-blast-2.2.26+-src.tar\ncbi-blast-2.2.26+-src\c++\compilers\cygwin\.
>>> So I think it is possible to run the software under cygwin. However, the
>>> compilation stopped at "checking for python", even if python was
>>> installed. That's to say, I installed the latest python and the
>>> compilation could find it, but the compilation tried to search for
>>> python2.3 and 2.4 further, and stopped when searching for 2.4.
>>>
>>> What I am concern is that whether the i686.rpm indicates it is prepared
>>> for cygwin. As you know, when you run "uname -smo", you can get
>>> something like this "CYGWIN_NT-5.1 i686 Cygwin". I think the package
>>> ncbi-blast-2.2.26+-3.i686.rpm is for Cygwin. Is that right? Has anyone
>>> ever succeeded in installing a RPM package into cygwin using "rpm -i
>>> *rpm"?
>>>
>> i686.rpm is not the source package, is the binary for linux on 686
>> processor.
>> On cygwin we do not use rpm for building packages so the source rpm
>> file will unlikely work.
>>
>> The source for all platforms is
>>
>> ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/ncbi-blast-2.2.26+-src.tar.gz
>>
>On 2012-4-8 14:47, marco atzeri wrote: Thank you, Marco. I tried that
>version. Unfortunately, the compilation always stopped at "checking
>python" even after python was installed. It seems to me that it is a
>tough work to rebuild a software from the source code under Cygwin. The
>dependency is hard to satisfy.
>
>I am curious about the utility rpm under Cygwin environment. When
>running the setup.exe, I noticed that there is a rpm package. (Search for
>"rpm" at the stage of "Select Packages" when running setup.exe, you can
>find the package under "Utils Default".) Then what is it for?

Looking at the blast directory, they have a source rpm.  Perhaps some source
code is only available as an rpm?

For what it is worth, I tried compiling and it seemed to compile OK when I
used "./configure --without-boost" (recommended by make after a simple
"./configure".  "make check" passed two of three tests.  YMMV.  As I did not
install any dependencies, maybe you could do better.

Also, I noted that ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/
contains some windows binaries.  You might consider using them as native
binaries usually run faster than cygwin binaries.

Also, note that there is a folder ncbi-blast-2.2.26+-src/c++/compilers/cygwin.
I didn't notice it until after I tried compiling.  You might try to figure out
whether the scripts there help you compile blast.

IMPORTANT: I'm not a programmer, I don't work at NCBI, I have no experience in
bioinformatics and have certainly never used BLAST.  DO NOT assume that I know
anything about this more than what I reported above.  I was intrigued and did
an experiment - that is all.

Good luck.

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.
  Disclaimer: Statements made herein are not made on behalf of NCBI.
  Disclaimer: Statements made herein are not made on behalf of NLM.
  Disclaimer: Statements made herein are not made on behalf of NIH.
  Disclaimer: Statements made herein are not made on behalf of PHS.
  Disclaimer: Statements made herein are not made on behalf of DHHS.

--
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

^ permalink raw reply	[flat|nested] 28+ messages in thread
* RE: Can RPM packages be installed into Cygwin?
@ 2012-04-18 23:10 Buchbinder, Barry (NIH/NIAID) [E]
  2012-04-19  7:24 ` De-Jian Zhao
  0 siblings, 1 reply; 28+ messages in thread
From: Buchbinder, Barry (NIH/NIAID) [E] @ 2012-04-18 23:10 UTC (permalink / raw)
  To: cygwin; +Cc: 'De-Jian Zhao'

De-Jian,

Hello.  It's me again.

I suspect that just writing wrapper scripts would be faster than playing
with RPMs and/or trying to compile blast yourself.

As I understand it, blast programs are all command-line.  I think
that the easiest thing would be to just use the Windows version
supplied by NCBI and write wrapper scripts that will convert cygwin's
POSIX paths to Windows paths.  You might have to experiment to see if
you also need to convert file formats from \n to \r\n line endings.

See
  $ man cygpath
  $ man dos2unix
  $ man unix2dos

Luc Hermitte's cyg-wrapper.sh might be all you need.
  http://hermitte.free.fr/cygwin/#Win32
Example (using vim):
  http://vim.wikia.com/wiki/Running_the_win32-version_of_Vim_from_cygwin
I've never used cyg-wrapper.sh, so this suggestion is "theoretical" and
not based on my personal experience.

Related:
  http://www.ncbi.nlm.nih.gov/books/NBK1762/
  http://www.ncbi.nlm.nih.gov/books/NBK52637/

Good luck,

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.
  Disclaimer: Please see http://cygwin.com/ml/cygwin/2012-04/msg00247.html
              for other disclaimers and statements concerning the limited
              reliability of my advice on this topic.


^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2012-04-20  0:21 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-07  7:40 Can RPM packages be installed into Cygwin? De-Jian Zhao
2012-04-07  8:13 ` marco atzeri
2012-04-08  3:10   ` De-Jian Zhao
2012-04-08  6:34     ` Csaba Raduly
2012-04-08  6:47     ` marco atzeri
2012-04-09 15:12       ` De-Jian Zhao
2012-04-10  0:49         ` Warren Young
2012-04-10  6:03           ` De-Jian Zhao
2012-04-10 14:42             ` Christopher Faylor
2012-04-17  5:58 ` Linda Walsh
2012-04-17 14:24   ` Christopher Faylor
2012-04-18 13:14   ` De-Jian Zhao
2012-04-18 14:03     ` Christopher Faylor
2012-04-18 16:06       ` De-Jian Zhao
2012-04-18 17:08         ` Christopher Faylor
2012-04-18 18:22           ` De-Jian Zhao
2012-04-18 18:31             ` Earnie Boyd
2012-04-18 18:43               ` Larry Hall (Cygwin)
2012-04-18 20:17             ` Yaakov (Cygwin/X)
2012-04-18 23:12             ` Warren Young
2012-04-18 16:58     ` Linda Walsh
2012-04-18 17:39       ` De-Jian Zhao
2012-04-20  0:21         ` Linda Walsh
2012-04-10  0:30 Buchbinder, Barry (NIH/NIAID) [E]
2012-04-10  5:48 ` De-Jian Zhao
2012-04-10 18:32   ` Warren Young
2012-04-18 23:10 Buchbinder, Barry (NIH/NIAID) [E]
2012-04-19  7:24 ` De-Jian Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).