草庐IT

ubuntu22.10安装cuda出错Failed to verify gcc version. See log at /var/log/cuda-installer.log for details.

ubuntu22.10在安装cuda,使用如下命令:sudoshcuda_11.0.2_450.51.05_linux.run   结果产生错误提示:Failedtoverifygccversion.Seelogat/var/log/cuda-installer.logfordetails.1、这是由于gcc版本不匹配的问题!一般简易解决方法是忽略,使用--override参数sudoshcuda_11.0.2_450.51.05_linux.run--override 2、或者可以变更gcc版本, A、首先在选CUDA版本时,链接尾部可以看到"VersionedOnlineDocumenta

Mac M1 Brew install 报错Command failed with exit 128:git

问题:记录一个问题,原因是今天使用Mac上面的Brew安装一个Redis发生了错误,我也是头一次使用Brew。理论上来说使用brew安装出现这种Error都是可以解决的!具体如图所示,执行brewinstallredis报错Commandfailedwithexit128:git解决方式:输入brew-v后会提示你执行两个配置命令,直接复制执行就ok了!gitconfig--global--addsafe.directory/opt/homebrew/Library/Taps/homebrew/homebrew-caskHomebrew/homebrew-caskgitconfig--glob

husky - commit-msg hook exited with code 1 (error)

git提交遇到husky-commit-msghookexitedwithcode1(error)的问题 解决方法:在冒号后加空格=》feat冒号空格或gitcommit-m"feat:xxxx",然后再pull、push即可。 

安装cython_bbox报错解决办法:Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

报错内容如下图所示:Preparingmetadata(setup.py)...errorerror:subprocess-exited-with-error×pythonsetup.pyegg_infodidnotrunsuccessfully.│exitcode:1╰─>[6linesofoutput]Traceback(mostrecentcalllast):File"",line2,inFile"",line34,inFile"/tmp/pip-install-a509pn1e/cython-bbox_4f8cde4aec364123b4ba34e507b2a155/setup.py"

遇到Got permission denied while trying to connect to the Docker daemon socket at unix:///var/怎么办?

问题:在使用执行docker命令的时候,总是提示如下报错原因是:在默认情况下,docker的UnixSocket属于root用户,当然其他用户可以使用sudo方式来访问。因为这个原因,docker进程就一直是root用户运行的。为了在使用docker命令的时候前边不再加sudo,我们需要创建一个叫docker的用户组,并且为用户组添加用户。然后在docker进程启动的时候,我们的docker群组有了UnixSocket的所有权,可以对Socket文件进行读写。总结一点,其实原因可能是没有创建用户组,或者将用户添加进用户组中,如果不想每次使用sudo的话,可以创建用户组或者将用户添加进用户组中就

安装 elasticsearch-head 环境时报错:Failed at the phantomjs-prebuilt@2.1.16 install script.

gitclonehttps://github.com/mobz/elasticsearch-head.gitcdelasticsearch-head/执行npminstall报错:执行 npminstallphantomjs-prebuilt@2.1.16--ignore-scripts命令–ignore-scripts参数用于npminstall在安装插件时忽略package.json中设置的脚本,意思就是避免package.json中的脚本影响插件的正常安装安装成功! 执行npmstart启动访问:http://localhost:9100/此时显示elasticsearch未连接,需要修

go - 无法调试 Go 代码 : could not launch process: decoding dwarf section info at offset 0x0: too short

我们正在尝试调试Go代码并收到此错误:couldnotlaunchprocess:decodingdwarfsectioninfoatoffset0x0:tooshort我们的设置:WITSC02X6385JGH:orderersjain68$uname-aDarwinWITSC02X6385JGH17.7.0DarwinKernelVersion17.7.0:FriJul619:54:51PDT2018;root:xnu-4570.71.3~2/RELEASE_X86_64x86_64WITSC02X6385JGH:orderersjain68$goversiongoversiong

go - 无法调试 Go 代码 : could not launch process: decoding dwarf section info at offset 0x0: too short

我们正在尝试调试Go代码并收到此错误:couldnotlaunchprocess:decodingdwarfsectioninfoatoffset0x0:tooshort我们的设置:WITSC02X6385JGH:orderersjain68$uname-aDarwinWITSC02X6385JGH17.7.0DarwinKernelVersion17.7.0:FriJul619:54:51PDT2018;root:xnu-4570.71.3~2/RELEASE_X86_64x86_64WITSC02X6385JGH:orderersjain68$goversiongoversiong

解决docker启动报错:Job for docker.service failed because the control process exited with error code

一、问题描述启动docker服务:sudosystemctlrestartdocker提示:Jobfordocker.servicefailedbecausethecontrolprocessexitedwitherrorcode.See"systemctlstatusdocker.service"and"journalctl-xe"fordetails.查看服务信息:systemctlstatusdocker.service  二、问题解决1、进入docker目录:cd/etc/docker/2、修改daemon的类型:mvdaemon.jsondaemon.conf3、重启docker:s

数字电路硬件设计系列(五)之AT89C51/C52最小系统设计

针对设计过程中的问题,如有疑问,欢迎留言评论!点我返回目录1简介AT89C51/C52是指两个系列的产品,具体包含AT89C51、AT89C52,但是最小系统的组成基本上相差不大。最小系统通常包括:电源、复位、时钟、程序下载。2最小系统分析讲解内容以AT89C52为例,对AT89C52最小系统进行详细讲解。2.1电源设计与STM32不同,AT89C52不仅可以3.3V供电,还能使用5V进行供电。通常情况下,单片机的供电时5V。其中EA为高时,选择内部程序存储。2.2复位电路设计与STM32不同,AT89C52采用的高电平复位。系统正常工作时,复位管脚为低电平,系统复位时,将复位管脚拉高,整个系