惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Tailwind CSS Blog
C
CERT Recently Published Vulnerability Notes
P
Proofpoint News Feed
Vercel News
Vercel News
博客园 - 三生石上(FineUI控件)
IT之家
IT之家
Help Net Security
Help Net Security
月光博客
月光博客
N
News and Events Feed by Topic
Cloudbric
Cloudbric
博客园 - 司徒正美
L
LangChain Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tenable Blog
The Register - Security
The Register - Security
The Hacker News
The Hacker News
I
InfoQ
The Last Watchdog
The Last Watchdog
MyScale Blog
MyScale Blog
Schneier on Security
Schneier on Security
WordPress大学
WordPress大学
小众软件
小众软件
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
宝玉的分享
宝玉的分享
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
K
Kaspersky official blog
L
LINUX DO - 热门话题
N
News | PayPal Newsroom
F
Fortinet All Blogs
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Security @ Cisco Blogs
Recorded Future
Recorded Future
大猫的无限游戏
大猫的无限游戏
H
Help Net Security
Google Online Security Blog
Google Online Security Blog
S
Schneier on Security
C
Cisco Blogs
N
News and Events Feed by Topic
V2EX - 技术
V2EX - 技术
Latest news
Latest news
PCI Perspectives
PCI Perspectives
T
The Blog of Author Tim Ferriss
P
Palo Alto Networks Blog
T
Tor Project blog
Project Zero
Project Zero
云风的 BLOG
云风的 BLOG
Webroot Blog
Webroot Blog
Attack and Defense Labs
Attack and Defense Labs
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org

Sehnsucht

记一次博客换图床的过程 观《花束般的恋爱》 读《活过》 东京 旅行篇 亲人逝去 我为什么想养鱼 防止AI爬取你的博客 「monthly 」博客重构 游戏全成就 好看的小说 人生的每一步都不会是浪费-2024年终 「weekly」星期五综合征 「weekly」听播客 杂谈 读《美丽新世界》 「weekly」社交媒体 恶性事件 新世界 「weekly」认知觉醒 美丽新世界 follow 「weekly」独立博客9问题 双十一买书 读《惊呆了!原来这就是社会学》 一次聊天与自我建设 2024-09月记 补番《relife》 树状数组简单理解 lvm简单使用 博客自动发布方案 某公众号废案 fail2ban基本使用 Podman 环境使用 Nginx Proxy Manager 最佳实践 2024-07同学聚会 vps使用podman部署freshrss Gitlab CICD 实践,思考与记录 装备升级:新的PC gitlab局域网搭建流程 FastMail迁移至GMail+Cloudflare Email Routing 读《黑客与画家》 leetcode 第 391 场周赛 Astro添加过渡后DarkModeToggle按钮失效 nuxt3使用echarts5渲染中国地图 人生刻度 又到凤凰花朵开放的时候 2023-05-10 实习结束 2023-04-26 广州博物馆游记 YOASOBI「たぶん」官方音乐视频 风灵玉秀-发如雪 带我的老哥离职了 从p10k转向Starship 什么是对称加密非对称加密、密钥交换、数字签名、证书 强调体验的一种思考时间的方式 ArchLinux使用vscode编写latex报错The font "FontAwesome" cannot be found ArchLinux安装(移动硬盘)流程 yay一个或多个文件没有通过有效性检查! 2022年终 hugo建站伊始 clash设置relay前置代理(校园网破解改进记录) 群青 · YOASOBI · Ayase 华为 matepad pro 11使用体验 Nginx使用acme.sh免费安装ssl证书 永远属于你的安娜 在线 童年趣事 童心,是比野心更难得的梦想 2021年终总结 基于jeeSite的软件测试课程作业 流程记录 Linux不同用户安装不同版本jdk Wifi4更换Wifi6路由器的使用体验 Flask 上传图片并灰度显示 玩客云刷机debain个人记录 jython 简单入门 Jenkins 个人搭建流程记录 集成邮件系统(qq邮箱),gitlab服务器,freestyle风格 在Web项目中配置Log4j --指南-- Codeforces Round 753 (Div. 3) ABCDE 浅谈fork函数 JavaWeb servlet 使用Cookie记录用户访问次数 Codeforces Round Educational Codeforces Round 114 (Rated for Div. 2) ABC 2021牛客多校7 I xay loves or 2021牛客多校9 H Happy Number 2021牛客多校8 D OR 2021牛客多校5 B Boxes 2021牛客多校5 H Holding Two 2021牛客多校2 D Er Ba Game 2021牛客多校1 F Find 3-friendly Integers 2021牛客多校1 B Ball Dropping 记人生第一次投简历和笔试 原型模式 2021-2-20 雨时随记 关于一维差分数组的例子 halo个人建站 关于手机ping电脑和电脑ping手机 泛型类简单理解 CodeForces - 849C From Y to Y 2020牛客国庆集训派对day3 Leftbest 约瑟夫环问题---2020牛客国庆集训派对day2 AKU NEGARAKU mysql 5.7 忘记密码如何更改 CF 1099B Squares and Segments CF 998A Balloons CF 998B Cutting 链表应用之多项式相加 CF 1150A Stock Arbitraging CF 1199A City Day CF 1199B Water Lily CF 982A Row CF 934A A Compatible Pair CF 629B Far Relative’s Problem 651A Joysticks 651B Beautiful Paintings
lunarvim国内安装踩坑记录
2023-03-21 · via Sehnsucht

只能说…真t的一波三折,本文只是简单记录一下一些坑,完整安装步骤就不赘述了

参考:

环境

  • 操作系统:ArchLinux
  • neovim版本:0.8.3
  • 终端环境:zsh

过程

官方的安装教程是输入

LV_BRANCH='release-1.2/neovim-0.8' bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/fc6873809934917b470bff1b072171879899a36b/utils/installer/install.sh)

注意:官方的安装脚本随时会改动,用旧的脚本可能会出现各种问题,如果选择旧的脚本安装,望珍重

即可自行安装完成

但是实际上吧,国内会无法安装,因为无法直接链接到github,很多的库都不无法直接下载

所以需要代理,这里我说一下我使用的两款代理软件clashforwindows的linux版和clashforlinux

但是在我开启代理之后安装过程依旧停滞或者报错

这是我最开始的时候,用官方脚本下载下来安装,但是发生了错误

 ~/app/lunarvim sudo bash lvim_install.sh base 16:12:54 98% 

      88\                                                   88\
      88 |                                                  \__|
      88 |88\   88\ 888888$\   888888\   888888\ 88\    88\ 88\ 888888\8888\
      88 |88 |  88 |88  __88\  \____88\ 88  __88\\88\  88  |88 |88  _88  _88\
      88 |88 |  88 |88 |  88 | 888888$ |88 |  \__|\88\88  / 88 |88 / 88 / 88 |
      88 |88 |  88 |88 |  88 |88  __88 |88 |       \88$  /  88 |88 | 88 | 88 |
      88 |\888888  |88 |  88 |\888888$ |88 |        \$  /   88 |88 | 88 | 88 |
      \__| \______/ \__|  \__| \_______|\__|         \_/    \__|\__| \__| \__|

--------------------------------------------------------------------------------
Detecting platform for managing any additional neovim dependencies
--------------------------------------------------------------------------------
Would you like to install LunarVim's NodeJS dependencies: neovim, tree-sitter-cli?
[y]es or [n]o (default: no) : y
Installing node modules with yarn..
yarn global v1.22.19
warning package.json: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "[email protected]" with binaries:
      - neovim-node-host
success Installed "[email protected]" with binaries:
      - tree-sitter
Done in 43.25s.
All NodeJS dependencies are successfully installed
--------------------------------------------------------------------------------
Would you like to install LunarVim's Python dependencies: pynvim?
[y]es or [n]o (default: no) : y
Verifying that pip is available..
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Installing with pip..
Requirement already satisfied: pynvim in /root/.local/lib/python3.9/site-packages (0.4.3)
Requirement already satisfied: greenlet in /home/hex/anaconda3/lib/python3.9/site-packages (from pynvim) (1.1.1)
Requirement already satisfied: msgpack>=0.5.0 in /home/hex/anaconda3/lib/python3.9/site-packages (from pynvim) (1.0.3)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
All Python dependencies are successfully installed
--------------------------------------------------------------------------------
Would you like to install LunarVim's Rust dependencies: fd::fd-find, rg::ripgrep?
[y]es or [n]o (default: no) : y
Installing missing Rust dependency with cargo
    Updating crates.io index
     Ignored package `fd-find v8.7.0` is already installed, use --force to override
warning: be sure to add `/root/.cargo/bin` to your PATH to be able to run the installed binaries
All Rust dependencies are successfully installed
--------------------------------------------------------------------------------
Backing up old /root/.config/lvim to /root/.config/lvim.old
--------------------------------------------------------------------------------
Backing up old /root/.local/share/lunarvim to /root/.local/share/lunarvim.old
--------------------------------------------------------------------------------
Backing up old /root/.cache/lvim to /root/.cache/lvim.old
--------------------------------------------------------------------------------
Cloning LunarVim configuration
正克隆到 '/root/.local/share/lunarvim/lvim'...
remote: Enumerating objects: 17060, done.
remote: Counting objects: 100% (178/178), done.
remote: Compressing objects: 100% (63/63), done.
remote: Total 17060 (delta 101), reused 143 (delta 85), pack-reused 16882
接收对象中: 100% (17060/17060), 13.82 MiB | 5.65 MiB/s, 完成.
处理 delta 中: 100% (10756/10756), 完成.
--------------------------------------------------------------------------------
Installing LunarVim shim
make: 进入目录“/root/.local/share/lunarvim/lvim”
starting LunarVim bin-installer
bash ./utils/installer/install_bin.sh
You can start LunarVim by running: /root/.local/bin/lvim
make: 离开目录“/root/.local/share/lunarvim/lvim”
Creating desktop file
Preparing Packer setup
Initializing first time setup
Error detected while processing /root/.local/share/lunarvim/lvim/init.lua:
Plugin lunar.nvim is not installedError detected while processing command line:
E492: Not an editor command: PackerSync
Error detected while processing VimEnter Autocommands for "*":
Plugin project.nvim is not installed
Plugin lualine.nvim is not installed
Plugin alpha-nvim is not installed

我在谷歌搜不到结果,只能说很奇怪…

根据PackerSync,我看了一下packer的库,发现我clone过了,于是删除文件夹

搜着搜着发现了一个UP主在B站上发了安装视频和博客,于是用他家改写的手动脚本安装,又发生了问题,用自定义脚本安装的过程很长,我等待了20分钟依旧无法安装成功,于是使用了博客里的镜像文件替换,但是报错了zsh: command not found: lvim

期间还出现了使用安装脚本权限不够,[ERROR]: Unable to verify plugins, make sure to manually run ':Lazy sync' when starting lvim for the first time.等的问题

解决方式

使用官方脚本

请务必使用官方的脚本安装,地址,因为脚本不一定相同,旧的会有问题

保持环境纯净

我是clone了packer,所以删除了,lunarvim会自己安装

代理问题

如果修改了代理,需要重新开一个终端,原来的终端其实是没有生效的

配置环境变量

关于环境变量,参考archwiki,有几种方式

第一种,我用的是zsh,所以配置zsh的环境变量(只是举个例子,zsh还有很多种配置的方式)。在~/.zshenv中,输入

typeset -U path
path=(~/.local/bin $path)

第二种,配置.bashrc文件

export PATH="$PATH:/home/$USER/.local/bin"

然后记得source一下使他们生效