1. 详细报错信息 misc/create_inode.c:399:18: error: conflicting types for 'copy_file_range' static errcode_t copy_file_range(ext2_filsys fs, int fd, ext2_file_t e2_file, ^~~~~~~~~~~~~~~ In file included from ./../misc/create_inode.c:19:0: /usr/include/unist…
编译gd-2.0.35.tar.gz时报错: gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/freetype/include/freetype2 -I/usr/local/freetype/include -I/usr/local/freetype/include -I/usr/local/jpeg/include -g -O2 -MT gd_png.lo -MD -MP -MF .deps/gd_png.Tpo -c gd_png.c -fPIC -…
解决办法: 更新openwrt的feeds,并重新make menuconfig ./script/feeds update -a ./script/feeds install -a…
在使用EF Code First更新数据库时报如下错误: 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误.未找到或无法访问服务器.请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接. (provider: SQL Network Interfaces, error: 26 - 定位指定的服务器/实例时出错) 以为是Sql Server的配置问题,作如下尝试: →打开Sql Server配置管理器,即"Sql Server Configuraiotn…
版本问题,最直接的解决办法就是重新编辑安装git吧: 1. 下载:# wget -O git.zip https://github.com/git/git/archive/master.zip 2. 解压:# unzip git.zip 3. 进入git目录:# cd git-master 4. 编译安装: autoconf ./configure --prefix=/usr/local make && make install 5. 最后别忘了删掉旧的git,并把新版本的git建立软链接…
今天在数据迁移时突然报了 Specified key was too long error 的错,解决掉之后就把这个问题记录下来. 报错原因 Laravel 5.4 +  默认使用 utf8mb4 字符编码,之前使用的是 utf8 编码 我mysql数据库使用的是 utf8 编码,支持的最大字符长度为3字节,如果遇到4字节的宽字符就会出现插入异常. 注意:三个字节 utf8 最大能编码的 Unicode 字符是 0xffff ,即Unicode中的基本多文种平面(BMP).因而包括Emoji表情…
使用 git 的命令行向 GitHub 提交的时候,报错: [Young@localhost OtherLang]$ git push origin master error: The requested URL returned error: Forbidden while accessing https://github.com/YoungZHU/OtherLang.git/info/refs fatal: HTTP request failed [解决办法] 1)在该资源库(Reposit…
Laravel 5.4默认使用utf8mb4字符编码,而不是之前的utf8编码.因此运行php artisan migrate 会出现如下错误: [Illuminate\Database\QueryException] SQLSTATE[]: Syntax error or access violation: Specified key was too bytes (SQL: alter table users add unique users_email_unique(email)) [PDO…
编译成功,运行时报错: 在使用 pytorch or tensorflow or caffe 时,都可能存在这个问题: *** Error in `xxx': free(): invalid pointer: 0x00000000020663b0 *** 很可能是缺少libtcmalloc库 解决方法1: apt-get安装libtcmallocsudo apt-get install libtcmalloc 然后打开~/.bashrc文件sudo gedit ~/.bashrc在文件末尾添加如…
在编译安装php服务时报错: configure: error: Cannot find MySQL header files under /application/mysql. Note that the MySQL client library is not bundled anymore! 前边搭建lnmp环境时,是把mysql和php安装在了同一台机器上,编译php的时候,需要通过参数 --with-mysql来指定mysql的安装路径,但在生产环境中,通常php和mysql是不在同一台…