Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entrez-direct packages the wrong binary in build pl256_1 #20083

Closed
ialbert opened this issue Feb 1, 2020 · 2 comments
Closed

entrez-direct packages the wrong binary in build pl256_1 #20083

ialbert opened this issue Feb 1, 2020 · 2 comments

Comments

@ialbert
Copy link
Member

ialbert commented Feb 1, 2020

It appears that the xtract subcommand of entrez-direct was rewritten from Perl to GO. When installed on MacOS Catalina invoking the xtract command will will fail with the error:

cannot execute binary file 

Edit:

The installation used to work correctly before. I noticed that older installation of the same tool do work. Doing conda install entrez-direct=11 packaged the correct binary when the build was pl526_0 but delivers the wrong binary if the build is pl256_1

The current version of the xtract command contains the information on the download locations:

#!/bin/sh
PATH=/bin:/usr/bin
export PATH
osname=`uname -s`
cputype=`uname -m`
case "$osname-$cputype" in
  Linux-x86_64 )           platform=Linux ;;
  Darwin-x86_64 )          platform=Darwin ;;
  CYGWIN_NT-* | MINGW*-* ) platform=CYGWIN_NT ;;
  Linux-*arm* )            platform=ARM ;;
  * )                      platform=UNSUPPORTED ;;
esac
compiled=$0."$platform"
if [ -x "$compiled" ]
then
  exec "$compiled" "$@"
else
  echo ""
  echo "Unable to locate xtract executable. Please execute the following:"
  echo ""
  echo "  ftp-cp ftp.ncbi.nlm.nih.gov /entrez/entrezdirect xtract.$platform.gz"
  echo "  gunzip -f xtract.$platform.gz"
  echo "  chmod +x xtract.$platform"
  echo ""
fi

@ialbert ialbert changed the title entrez-direct now requires GO entrez-direct packages the wrong binary in build pl256_1 Feb 1, 2020
@ialbert ialbert changed the title entrez-direct packages the wrong binary in build pl256_1 entrez-direct packages the wrong binary in build pl256_1 Feb 1, 2020
@ialbert
Copy link
Member Author

ialbert commented Feb 1, 2020

I tracked down wich xtract is being installed. It appears that upon installation the following repositroy is downloaded:

https://conda.anaconda.org/bioconda/noarch/entrez-direct-11.0-pl526_1.tar.bz2

this contains the wrong binary.

@ialbert
Copy link
Member Author

ialbert commented Feb 3, 2020

The problems have been solved. Thanks @dpryan79

@ialbert ialbert closed this as completed Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant