2022.04.15【单细胞】|Seurat安装,C++ compiler supports the long long type... no解决方法

7 篇文章 0 订阅
5 篇文章 4 订阅

项目场景

最近学习单细胞转录组(scRNA)分析,这个分析需要提前安装R4.0还有Seurat等R包进行分析,同事在创建新环境后正常情况下都可以顺利安装,然而到我这边,似乎是缺少某一个lib依赖库,没法成功安装(之前也遇到过,没能解决)。


问题描述

执行安装命令后,其他依赖软件安装正常,剩下reshape,stringi.stringr安装报错。

BiocManager::install("Seurat")

具体报错在于stringi安装出问题(之前遇到过),导致Seurat安装失败

checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking elf.h usability... yes
checking elf.h presence... yes
checking for elf.h... yes
checking whether we are using the GNU C++ compiler... yes
checking whether g++ -m64 -std=c++0x accepts -g... yes
checking whether the C++ compiler supports the long long type... no
*** trying with disabled C++11 compiler
checking whether we are using the GNU C++ compiler... yes
checking whether g++ -m64 accepts -g... yes
checking whether the C++ compiler supports the long long type... no
*** verify your C++ compiler's abilities (long long, STL, etc. support)
ERROR: configuration failed for package ‘stringi’

原因分析

最开始google到github社区里,说是需要安装libstdcxx-devel-linux64conda searchinstall后发现该环境已经安装了libstdcxx-devel-linux64。但肯定还是缺什么东西。


解决方案

于是绕过问题,改用conda 安装,具体安装命令为

conda install r-stringi

经过conda的一番搜索,发现缺乏的依赖库是libstdcxx-ng。给出了下载安装该依赖库的方法。

在这里插入图片描述
之后如愿安装上stringi,同时,也成功安装上Seurat。

总结

其实之前在做kegg注释的时候,clusterProfiler这个R包也需要stringi,我当时也是绕过R,使用conda安装。需要注意的是用conda安装要在安装包前面加r-前缀(如r-clusterProfiler)。
欢迎学习生信的小伙伴加VX:bbplayer2021,进遍地大佬的交流群,这里有不懂的问题都可以互相帮助哦。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

穆易青

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值