开发者社区 问答 正文

怎么在centos上配置共享库-配置报错

"<p style=""font-size:14px;"">
<span style=""color:#434343;font-family:Tahoma, Arial, 宋体, 'Malgun Gothic';font-size:12px;line-height:24px;background-color:rgba(255, 255, 255, 0.8);"">

<span style=""font-size:16px;"">今天在centos上部署electron  启动的时候需要共享库  报 <span style=""font-size:16px;color:#434343;background-color:#ffffff;"">error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory这个错误  在网上搜了搜需要下载共享库 然后执行

yum install libXScrnSaver  这一句就可以了   现在我不想在线下载  因为以后部署的服务器不会连网   所以我想问有没有什么方法能自己把共享库下载下来然后用wincp传到服务器上在配置   具体应该怎么做


"

展开
收起
montos 2020-05-31 00:09:41 420 分享 版权
1 条回答
写回答
取消 提交回答
  • 配置一个本地源安装上就可以了######如果官方软件源里面有某些库,建议直接用官方,安装官方的######/etc/yum.repos.d/目录底下的repo文件,都是描述yum安装时软件库的位置,可以把baseurl改成本地目录file://这样的,同样可以用yum来安装。所有的rpm可以从安装盘里面拷出来,或者直接放在安装盘上######能说具体点吗 本地源叫什么名字 具体怎么配置

    2020-05-31 00:09:51
    赞同 展开评论