15AH, San Francisco

California, United States.

Send Your Mail At:

tianyingkejishe@sina.cn

Working Hours

Mon-Sat: 9.30am To 7.00pm

归档标题

Autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et dolore feugait.

月度归档 7月 22, 2024

【安凯】环境搭建

一、配置gcc工具

export PATH="${PATH}:/opt/arm-anykav500-linux-uclibcgnueabi/bin"
临时生效,必须使用绝对路径。

二、libmpfr.so.4: cannot open shared object file: No such file or directory

sudo ln -s /usr/lib/x86_64-linux-gnu/libmpfr.so.6 /usr/lib/x86_64-linux-gnu/libmpfr.so.4

三、yylloc符号错误

……
186
187 extern YYSTYPE yylval;
188 //extern YYLTYPE yylloc;
189 int yyparse (void);
……
1193 /* The lookahead symbol. / 1194 int yychar; 1195 1196 / The semantic value of the lookahead symbol. / 1197 YYSTYPE yylval; 1198 / Location data for the lookahead symbol. / 1199 static YYLTYPE yylloc 1200 # if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL 1201 = { 1, 1, 1, 1 } 1202 # endif 1203 ; 1204 / Number of syntax errors so far. */
1205 int yynerrs;
1206
……

调整yylloc为局部符号.

【安凯】SDK编译时./mkfs.jffs2打包失败问题

一、报错

./mkfs.jffs2: error while loading shared libraries: liblzo2.so.2: cannot open shared object file: No such file or directory

二、解决方法

sudo apt-get update              //更新源,可以先执行第二步,不能安装则尝试更新源
sudo apt-get install liblzo2-dev:i386

【dockers】提高下载速度的方法【dockers】

一、国内镜像

阿里云个人镜像(速度最快,下边是中科大的公共镜像,个人镜像的获取方法见本文最后)

https://ustc-edu-cn.mirror.aliyuncs.com

网易镜像

https://hub-mirror.c.163.com

百度镜像

https://mirror.baidubce.com

docker官方国内镜像

https://registry.docker-cn.com

 中科大镜像(不要用这个,现在已无法外网访问,仅限学校内网使用)

https://docker.mirrors.ustc.edu.cn

二、配置方法

修改/etc/docker/daemon.json(如果没有则新建此文件)

内容如下:

{
  "registry-mirrors": ["https://ustc-edu-cn.mirror.aliyuncs.com"]
}

也可以配置多个地址:

{
  "registry-mirrors": ["https://ustc-edu-cn.mirror.aliyuncs.com", 
                        "https://hub-mirror.c.163.com"
                      ]
}

三、验证

docker info

【dockers】给普通用户赋予docker权限

1、 查看当前用户组中是否有docker组

sudo cat /etc/group | grep docker

2、 如果没有则创建

sudo groupadd docker

3、 将用户加入docker组

sudo usermod -aG docker $USER
sudo usermod -aG dockerroot $USER

4、 退出用户重连即可

【NPM】run `npm fund` for details解决【NPM】

1、其实上面的提示也已经给出了解决或者排除问题的方法,那就是紧接着上面提示的下面,输入命令行:
npm fund
2、然后可以查看提示具体的提示内容,是依赖的打赏捐赠提示,然后再接着输入一行命令:
npm run dev
3、回车就可以了,一般都是开发者捐赠支持的提示,打开一个github的链接之后,会显示需要打赏捐赠的信息,此时如果不想捐赠或者跳过这个提示的话,直接在后面加–no-fund即可,具体命令如下:
npm install –no-fund