ChIA-PET2报错系列——第四步报错(macs2报错找不到命令)

在执行ChIA-PET2分析过程中遇到macs2命令找不到的问题。报错信息表明macs2命令未正确配置在系统路径中。解决办法包括检查macs2是否已安装,确保其在PATH环境变量里,或者通过添加软链接到系统bin目录来使命令全局可访问。

1、报错:找不到命令

在这里插入图片描述

[root@node01 fengyongxian]# vim /etc/profile
[root@node01 fengyongxian]# which python
/usr/local/bin/python
[root@node01 fengyongxian]# vim /etc/profile
[root@node01 fengyongxian]# macs2
bash: /home/fengyongxian/shm/tartar/miniconda/yes/bin/macs2: /home/fengyongxian/shm/tartar/miniconda/yes/bin/python: 坏的解释器: 没有那个文件或目录
[root@node01 fengyongxian]# vim /etc/profile
[root@node01 fengyongxian]# macs2
bash: /home/fengyongxian/shm/tartar/miniconda/yes/bin/macs2: /home/fengyongxian/shm/tartar/miniconda/yes/bin/python: 坏的解释器: 没有那个文件或目录
[root@node01 fengyongxian]# cd /home/fengyongxian/shm/tartar/macs2/MACS-2.2.7.1
[root@node01 MACS-2.2.7.1]# sudo python setup.py install
sudo:python:找不到命令
[root@node01 MACS-2.2.7.1]# 

2、解决办法:

python setup.py build
python setup.py install
[root@node01 Python-2.7.18]# python -V
Python 2.7.18
[root@node01 Python-2.7.18]# sudo python setup.py install
sudo:python:找不到命令
[root@node01 Python-2.7.18]# sudo python setup.py clean
sudo:python:找不到命令
[root@node01 Python-2.7.18]# sudo python3 setup.py clean
sudo:python3:找不到命令
[root@node01 Python-2.7.18]# sudo python1 setup.py clean
sudo:python1:找不到命令
[root@node01 Python-2.7.18]# sudo python2 setup.py clean
sudo:python2:找不到命令
[root@node01 Python-2.7.18]# sudo python2 setup.py build
sudo:python2:找不到命令
[root@node01 Python-2.7.18]# python2 setup.py build
running build
running build_ext
building dbm using ndbm

Python build finished, but the necessary bits to build these modules were not found:
bsddb185           dl                 imageop         
sunaudiodev                                           
To find the necessary bits, look in setup.py in detect_modules() for the module's name.

running build_scripts
[root@node01 Python-2.7.18]# python setup.py install
running install
running build
running build_ext
building dbm using ndbm

Python build finished, but the necessary bits to build these modules were not found:
bsddb185           dl                 imageop         
sunaudiodev                                           
To find the necessary bits, look in setup.py in detect_modules() for the module's name.

running build_scripts
running install_lib
changing mode of /usr/local/lib/python2.7/site-packages/_codecs_hk.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_sysconfigdata.pyo to 644
changing mode of /usr/local/lib/python2.7/site-packages/_struct.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/syslog.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_locale.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/nis.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_functools.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/mmap.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/math.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_testcapi.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/cStringIO.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/strop.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/termios.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/cPickle.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_curses_panel.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/parser.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/crypt.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_multiprocessing.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_ssl.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_collections.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_sqlite3.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_json.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_io.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/operator.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/unicodedata.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_ctypes_test.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/future_builtins.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_codecs_iso2022.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/binascii.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/fcntl.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/resource.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_sysconfigdata.pyc to 644
changing mode of /usr/local/lib/python2.7/site-packages/ossaudiodev.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/bz2.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_socket.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_bsddb.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/zlib.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_heapq.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_elementtree.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_multibytecodec.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_hashlib.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/pyexpat.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_codecs_jp.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_codecs_tw.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_random.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/gdbm.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/grp.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_codecs_kr.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_curses.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/array.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_sysconfigdata.py to 644
changing mode of /usr/local/lib/python2.7/site-packages/_lsprof.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/datetime.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_bisect.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/itertools.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_tkinter.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/select.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/audioop.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/dbm.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/linuxaudiodev.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_csv.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/time.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_codecs_cn.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/readline.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_hotshot.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_ctypes.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/cmath.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/spwd.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/ to 755
running install_scripts
changing mode of /usr/local/bin/idle to 755
changing mode of /usr/local/bin/smtpd.py to 755
changing mode of /usr/local/bin/2to3 to 755
changing mode of /usr/local/bin/pydoc to 755
running install_egg_info
Removing /usr/local/lib/python2.7/site-packages/Python-2.7.18-py2.7.egg-info
Writing /usr/local/lib/python2.7/site-packages/Python-2.7.18-py2.7.egg-info
[root@node01 Python-2.7.18]# 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值