踩坑笔记
文章平均质量分 64
博主踩过的坑,帮后来者填上。我们都有光明的未来!
鱼儿听雨眠
兴趣使然的创作者
展开
-
【libevent】configure: error: openssl is a must but can not be found. You should add the director……
Mac系统下使用 `brew` 下载 `openssl`,之后在执行`./configure --prefix=/usr/local ` 语句配置 `libevent` 的时候出现了如下报错:configure: error: openssl is a must but can not be found. You should add the directory containing `openssl.pc' to the `PKG_CO……原创 2024-05-28 01:33:23 · 1003 阅读 · 1 评论 -
Static class blocks are not enabled. Please add `@babel/plugin-transform-class-static-block` to ...
我在使用 `SpringBoot` + `Vue` + `monaco `写项目的过程中出现了如下报错:ERROR in ./node_modules/monaco-editor/esm/vs/language/typescript/tsMode.jsModule build failed......Static class blocks are not enabled. Please add `@babel/plugin-transform-class-static-block` to your...原创 2024-02-26 20:21:39 · 1153 阅读 · 2 评论 -
【PyCharm】SSH连接远程服务器,代码能跑但导入的库被标红的解决方案
在 PyCharm 中修改SSH连接的远程服务器的 Python 解释器后,导入的第三方库会被标红,但程序仍可正常执行。采用在 PyCharm 中手动添加虚拟环境的 lib 路径信息来解决。原创 2023-10-06 17:24:32 · 1543 阅读 · 5 评论 -
【uWSGI】ERROR: Could not build wheels for uwsgi, which is required to install pyproject.toml-based...
在Python3.9的环境中安装uWSGI时出现以下报错:gcc: error: .../python3.9/config-3.9-x86_64-linux-gnu/libpython3.9.a: 没有那个文件或目录.ERROR: Could not build wheels for uwsgi, which is required to install pyproject.toml-based projects。可以使用conda安装:conda install -c conda-forge ......原创 2023-09-11 16:38:04 · 9786 阅读 · 6 评论 -
【LeetCode】1654:到家的最少跳跃次数的解题思路 & 关于力扣无法return的BUG的讨论
本人在作答“LeetCode 1654:到家的最少跳跃次数”时发现了一个力扣网站的问题,貌似是个BUG,拿出来和大家讨论一下。在 LeetCode 的官网上,if 语句在判断结果为 true 的条件下不会执行代码块中的 return 语句!!!把 Solution 类的代码直接复制到 IDEA 中则可以执行。可以通过另一个 break 解决:在同层次的另一个 if 语句的代码块中加入 break 语句后,之前不能执行的 break 和 return 语句可以正常执行了!!!原创 2023-08-31 11:32:24 · 765 阅读 · 0 评论 -
Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred……
本人使用 idea 创建 web 工程后,运行 tomcat 服务器时出现报错:Error: Could not create the Java Virtual Machine.EDDisconnected from serverError: A fatal exception has occurred. Program will exit.Unrecognized option: --add-opens=java.base/java.lang=ALL-UNNAM……原创 2023-08-18 11:20:12 · 6835 阅读 · 2 评论 -
【Mindspore】lambda函数报错:TypeError: Parse Lambda Function Fail. Node type must be Lambda, but got Call.
在尝试用mindspore手写transformer时报了和lambda表达式相关的错误。通过将lambda表达式赋值给变量再传入函数的方式解决!原创 2023-07-03 16:48:21 · 155 阅读 · 1 评论 -
【ubuntu】gcc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
在 `ubuntu 20.04` 系统中编译 `graphlearning` 源码时出现如下报错:gcc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory。通过 reinstall 的方式下载 cc1plus,成功解决问题。原创 2023-02-28 21:22:31 · 13102 阅读 · 6 评论 -
【Springboot & Mongodb6.0】ERROR 18080 --- [ main] o.s.boot.SpringApplication
本人是一名Spring小白,跟着黑马的课程学习Mongodb时出现了如题目报错。经过问题定位,我发现错在试图对一个字段建立两个名称不同的索引。删除之前建立的索引或者修改后建立的索引名称即可。原创 2022-12-28 16:54:44 · 431 阅读 · 0 评论 -
【MongoDB 6.0】MongoInvalidArgumentError: Update document requires atomic operators
在MongoDB 6.0中更新数据时遇到的问题,可通过采用局部更新的方式来解决。代码与截图均奉上。原创 2022-12-26 16:31:41 · 3225 阅读 · 0 评论 -
【gigabyte】开机循环进入技嘉主板界面、BIOS功能识别不出硬盘
问题简述:打开电脑就进入了技嘉主板的界面。退出技嘉界面后,不能进入系统而是重复进入技嘉界面,并且数次重启后依然如此。检查BIOS功能后,我发现并没有识别到硬盘。固态硬盘和机械硬盘都没有被识别到。解决方法:重启电脑,按 F2 键进入技嘉主板界面,进入BIOS功能界面,开启CSM支持。按F10键保存并退出。然后,连续按 F12 键,进入……原创 2022-10-12 20:33:58 · 36877 阅读 · 12 评论