像我这样的运气也是没谁了。如果哪位大佬知道解决办法,请不吝赐教,谢谢🙏
一、安装模块各种:
bash:
$wget ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/edirect.tar.gz
-bash: wget: command not found
$yum -y install wget
-bash: yum: command not found
$which ruby
/usr/bin/ruby
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
$ brew wget
Error: Unknown command: wget
$ brew update
Error: The /usr/local directory is not writable.
Even if this directory was writable when you installed Homebrew, other
software may change permissions on this directory. Some versions of the
"InstantOn" component of Airfoil are known to do this.
$ sudo chown -R $(whoami):admin /usr/local
Password:
Sorry, try again.
Password:
chown: /usr/local: Operation not permitted
$ sudo chown -R $(Xiecuinan):admin /usr/local
-bash: Xiecuinan: command not found
chown: /usr/local: Operation not permitted
zsh:
% brew wget
Error: Unknown command: wget
$ pip install pandas
Traceback (most recent call last):
File "/usr/local/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
$ pip install pkg_resources
Traceback (most recent call last):
File "/usr/local/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
二、安装wget不行。改用curl了。
$ tar zxvf wget2-1.99.2.tar.gz
x wget2-1.99.2/
x wget2-1.99.2/build-aux/
x wget2-1.99.2/build-aux/config.guess
x wget2-1.99.2/build-aux/config.rpath
......
$ cd wget2-1.99.2
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
......
config.status: creating po/Makefile
configure: Summary of build options:
Version: 1.99.2
Host OS: darwin19.4.0
Install prefix: /usr/local
Compiler: gcc
CFlags: -DNDEBUG
LDFlags:
Libs: -lpcre -llzma -lz -lbz2
Library types: shared=yes, static=yes
SSL/TLS support: gnutls (not found)
GZIP compression: yes
mypath$make
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in lib
GEN alloca.h
GEN arpa/inet.h
GEN byteswap.h
GEN dirent.h
GEN fcntl.h
安装好后仍然报错:command:wget not found
果断用curl。
三、安装好edirect后:报错“you may need to install the IO::Socket::SSL module”,总之就是各种缺少模块。为了安装模块我要用install,为了安装install我要用wget。请教了大佬说需要从安装homebrew开始。
$ esearch -db SNP -query "ALK" | efetch -format dosum >alk-snp.txt
Can't locate IO/Socket/SSL.pm in @INC (you may need to install the IO::Socket::SSL module) (@INC contains: /Users/Xiecuinan/edirect/aux/lib/perl5 /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.4 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 .) at ./edirect.pl line 70.
BEGIN failed--compilation aborted at ./edirect.pl line 70.
四、安装homebrew:
官网上的那行命令不太好下载,总是连接超时。好不容易搞到了brew_install.rb脚本。ruby之。
五、文件读写权限
Mac catlina系统终端:
$ sudo cp /***/******/bin/bin/brew_install.rb /usr/bin
Password:
cp: /usr/bin/brew_install.rb: Operation not permitted