在centos stream 9上安装llmster出错

张开发
2026/6/12 17:37:28 15 分钟阅读
在centos stream 9上安装llmster出错
在centos stream 9上安装LM Studio的无界面版llmster出错# curl -fsSL https://lmstudio.ai/install.sh | bashDownloading llmster 0.0.7-4 Linux x86_64##################################################### 100.0%Verifying checksum...Installing llmster...node:internal/modules/cjs/loader:1961return process.dlopen(module, path.toNamespacedPath(filename));^Error: /lib64/libstdc.so.6: version GLIBCXX_3.4.30 not found (required by /tmp/tmp.OI0HNRdfmb/.bundle/daemon/watcher.node)at Object..node (node:internal/modules/cjs/loader:1961:18)at Module.load (node:internal/modules/cjs/loader:1524:32)at Module._load (node:internal/modules/cjs/loader:1326:12)at TracingChannel.traceSync (node:diagnostics_channel:328:14)at wrapModuleLoad (node:internal/modules/cjs/loader:245:24)at Module.require (node:internal/modules/cjs/loader:1547:12)at require (node:internal/modules/helpers:152:16)at 58220 (../../.bundle/daemon/index.js:7:754758)at _0x446771 (../../.bundle/daemon/index.js:1835:106093)at 61752 (../../.bundle/daemon/index.js:19:7179) {code: ERR_DLOPEN_FAILED}Node.js v25.5.0ERROR: command failed: /tmp/tmp.OI0HNRdfmb/llmster bootstrap以下为解决过程执行命令# strings /lib64/libstdc.so.6 | grep GLIBCXX没有GLIBCXX_3.4.30检查缺少库libstdc.so.6.0.30使用安装包不管用的情况下下载GCC库原文件手工编译# cd /usr/local/src# wget https://ftp.gnu.org/gnu/gcc/gcc-12.1.0/gcc-12.1.0.tar.gz# tar zxvf gcc-12.1.0.tar.gz安装编译的组件# yum groupinstall -y Development Tools安装编译依懒包# yum install -y mpfr-devel gmp-devel libmpc-devel# cd gcc-12.1.0/准备编译环境下载依懒项# ./contrib/download_prerequisites成功后# mkdir build cd build# ../configure --prefix/usr/local/gcc-12.1.0 --enable-checkingrelease --enable-languagesc,c --disable-multilib完成后# echo $(nproc) 显示cpu有16个核心# make -j$(nproc) 让所有核心都参于编译很长时间后(大约半小时# make install又很长时间查看安装内容# ls /usr/local/gcc-12.1.0/lib64/libstdc.so.*更改符号链接# cd /lib64# ls libstdc* -al# ln -sf /usr/local/gcc-12.1.0/lib64/libstdc.so.6.0.30 libstdc.so.6# cd ~# vim .bashrc添加一行export PATH/usr/local/gcc-12.1.0/bin:$PATH# source .bashrc#gcc --version 显示12.1.0再次安装llmster[rootlocalhost ~]# curl -fsSL https://lmstudio.ai/install.sh | bashDownloading llmster 0.0.7-4 Linux x86_64##################################################### 100.0%Verifying checksum...Installing llmster...(node:544753) ExperimentalWarning: Single executable application is an experimental feature and might change at any time(Use llmster --trace-warnings ... to show where the warning was created)Install completed at /root/.lmstudio/llmster/0.0.7-4.Installation finished successfully! llmster is ready to launch.To start the daemon, run:lms daemon upTo add lms to your PATH, either restart your shell or run:export PATH/root/.lmstudio/bin:$PATH至此完成。

更多文章