用终端 brew update 或 brew install ** 时遇到的问题,详细如下: Error: Could not link: /usr/local/etc/bash_completion.d/brew Please delete these paths and run `brew update`. Error: Could not link: /usr/local/share/zsh/site-functions/_brew Please delete these paths an…
mac 执行brew update 报错 Error: Could not link: /usr/local/share/doc/homebrew 更新brew,报错 Error: Could not link: /usr/local/etc/bash_completion.d/brew Please delete these paths and run `brew update`. Error: Could not link: /usr/local/share/zsh/site-functio…
如图所示: 在命令行输入: sudo chown -R 当前登录的用户名 /usr/local 再次输入: brew update 问题解决.…
报错详细信息 构建错误 - “#include嵌套太深” /usr/local/include/stdint.h:2:10: error: #include nested too deeply #include <stddef.h> ^ /usr/local/include/stdint.h:59:11: error: #include nested too deeply # include <stdint.h> ^ /usr/local/include/stdint.h:72:1…
# 关于homebrew使用时遇到的问题: Error: Could not symlink bin/gdb/usr/local/bin is not writable. 这是我在给我的Mac电脑安装GDB的时候遇到的问题: 我的Mac使用homebrew管理,于是我使用brew install gdb命令直接安装gdb,结果如下: 我在stackoverflow找到了发生的类似情况,经过阅读判断,找到了一下两种解决办法: 如图,直接输入命令: 命令内容: sudo chown -R `whoa…
dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib Table of Contents 1. 启动时报错 1.1. Clisp 1.1.1. dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib 1 启动时报错   1.1 Clisp   1.1.1 dyld: Library not loaded: /us…
前言 最近深度学习Ultra-Fast-Lane-Detection/INSTALL.md at master · cfzd/Ultra-Fast-Lane-Detection (github.com)需要安装opencv c++,于是准备安装.于是按照OpenCV: Installation in Linux官网一顿操作,好像是成功了.但是在安装成功,进行软链接的时候 # First you need to install OpenCV C++. # After installation, m…
mac,/usr/local is not writable 解决方法 mac 问题 今天在mac上装mongodb,发现提示权限不足问题,错误提示如下: mac安装mongodb错误提示.jpg 尝试使用提示的命令进行操作,发现无效.后来在百度上找,无果... 想起我专门充钱开了一个lantern(VPN)的会员,开启vpn,打开我大google,直接搜索,第一个搜索结果就是我想要的答案. 解决方法: 收入命令: sudo chown -R $(whoami):admin /usr/local…
今天继续作大死,趟php7的配置的坑. 照例,安装了昨天的各种扩展之后,解压php7的压缩文件到 /usr/local/. 然后开始配置config的扩展: ./configure --prefix=/usr/local/php7 \ --with-gd \ --with-freetype-dir \ --enable-gd-native-ttf \ --enable-mysqlnd \ --with-pdo-mysql=mysqlnd \ --with-openssl \ --with-mcr…
进入php源码包目录:cd /usr/local/php-5.6.25/ext/openssl 执行命令:  cp ./config0.m4 ./config.m4 即可…
安装Maven中 配置系统环境变量: # vi + profile M2_HOME=/usr/local/develop-tools/apache-maven- export M2_HOME PATH=$PATH;$M2_HOME/bin //只要把路径与路径之间的分割符改为:":" export PATH #source /etc/profile /usr/local/develop-tools/apache-maven-/bin: 是一个目录 windows的操作习惯影响根深蒂固,…
执行react-native run-android/run-ios的时候出现 -bash: /usr/local/bin/react-native: No such file or directory 解释一下出现问题的大背景:本来这个命令是能运行的,只因为我再网上下载了一个开源的react-native项目,然后执行命令npm install插入node_modules模块后,不仅这个项目无法执行运行命令,其他的项目也不可以了. 大概原因:可能是我再插入node_modules模块的时候把全…
错误如下:checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking build system type... x86_64-unknown-linux-gnu checking host system type... x86…
报错(如下),但是使用mysqld直接启动没有问题. 150718 00:03:38 mysqld_safe Logging to '/var/log/mysqld.log'. 150718 00:03:38 mysqld_safe The file /usr/local/mysql/bin/mysqld does not exist or is not executable. Please cd to the mysql installation directory and restart t…
10.11 cocoapods安装命令: sudo gem install -n /usr/local/bin cocoapods…
重新启动服务器,访问web服务发现无法浏览啦!登陆服务器之后进到nginx使用./nginx -s reload重新读取配置文件,发现报nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)错误,进到logs文件发现的确没有nginx.pid文件 [root@localhost sbin]# ./nginx -s reload nginx: [error]…
Error Symptom: when you run $mysql -u root -p command in the linux you get an error message ” mysql: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: UP” Solution: Step 1: Login as root Step 2: Go to folder path #cd/usr/local/l…
iwangzheng.com tty:[0] jobs:[0] cwd:[/opt/nginx/conf] 12:45 [root@a02.cmsapi]$ /usr/local/nginx/sbin/nginx -s reload nginx: [error] invalid PID number "" in "/usr/local/nginx/logs/nginx.pid" tty:[0] jobs:[0] cwd:[/opt/nginx/conf] 12:45…
昨天问我/usr/lib 和/usr/local/lib 我仅记得一个是系统的,一个是用户的,于是今天查了查,有两篇文章介绍的不错,usr 很多人都认为是user缩写,其实不然,是unix system resource缩写,第二篇文章说的更详细.可以看另一篇博文. 转载:http://flash7783.iteye.com/blog/584568 简单说,/lib是内核级的,/usr/lib是系统级的,/usr/local/lib是用户级的. /lib/ — 包含许多被 /bin/ 和 /sb…
今天测试域名访问不了,登陆 Linux(Ubuntu)重启Nginx: nginx -s reload 结果报错: nginx: [error] open() : No such file or directory) 解决方法: /usr/local/nginx/sbin/nginx -c/usr/local/nginx/conf/nginx.conf…
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfig.rb:213: warning: Insecure world writable dir /usr/local in PATH, mode 040777 这个提示是说,给/usr/local 这个文件777的权限太大,不安全. 改为775,就没有这个提示了.…
今天在fedora core 4下面安装jdk1.6后,运行java -version,没有出现相关的版本信息,而是出现了以下错误: dl failure on line 685Error: failed /usr/local/jdk1.6.0_10/jre/lib/i386/client/libjvm.so, because /usr/local/jdk1.6.0_10/jre/lib/i386/client/libjvm.so: cannot restore segment prot aft…
Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql' 这应该是某种情况下导致/usr/local/mysql/data的宿主发生了改变. 解决方法:打开终端运行 sudo chown -R mysql /usr/local/mysql/data 即可. mac 下运行  sudo chown -R  _mysql:wheel  /usr/local/mysql/data . -c 显…
为什么很多应用都安装在/usr/local目录下   很多应用都安装在/usr/local下面,那么,这些应用为什么选择这个目录呢?理解了最根源的原因后,也许对你理解linux组织文件的方式有更直观的理解.   答案是:Automake工具定义了下面的一组变量:   [php]  Directory variable  Default value   prefix  /usr/local     exec_prefix   ${prefix}       bindir  ${exec_prefi…
/usr/local下一般是你安装软件的目录,这个目录就相当于在windows下的programefiles这个目录 /opt这个目录是一些大型软件的安装目录,或者是一些服务程序的安装目录 /opt Here’s where optional stuff is put. Trying out the latest Firefox beta? Install it to /opt where you can delete it without affecting other settings. P…
简单说,/lib是内核级的,/usr/lib是系统级的,/usr/local/lib是用户级的. /lib/ — 包含许多被 /bin/ 和 /sbin/ 中的程序使用的库文件.目录 /usr/lib/ 中含有更多用于用户程序的库文件./lib目录下放置的是/bin和/sbin目录下程序所需的库文件./lib目录下的文件的名称遵循下面的格式: libc.so.* ld* 仅仅被/usr目录下的程序所使用的共享库不必放到/lib目录下.只有/bin和/sbin下的程序所需要的库有必要放到/lib目…
/lib是内核级的,/usr/lib是系统级的,/usr/local/lib是用户级的. /lib/ — 包含许多被 /bin/ 和 /sbin/ 中的程序使用的库文件.目录 /usr/lib/ 中含有更多用于用户程序的库文件./lib目录下放置的是/bin和/sbin目录下程序所需的库文件./lib目录下的文件的名称遵循下面的格式: libc.so.* ld* 仅仅被/usr目录下的程序所使用的共享库不必放到/lib目录下.只有/bin和/sbin下的程序所需要的库有必要放到/lib目录下.实…
  [root@localhost ~]# cd /usr/local/mysql   [root@localhost mysql]# chown -R mysql.mysql . [root@localhost mysql]# su - mysql [mysql@localhost ~]$ cd /usr/local/mysql [mysql@localhost mysql]$ scripts/mysql_install_db   …
mysql错误解决: 先 参考:http://www.jb51.net/article/48625.htm 参考第四条: mysql在启动时没有指定配置文件时会使用/etc/my.cnf配置文件,请打开这个文件查看在[mysqld]节下有没有指定数据目录(datadir). mysql版本:mysql  Ver 14.14 Distrib 5.5.44, for linux2.6 (i686) using readline 5.1 错误原因:my.conf放置在/etc目录下,当安装mysql-…
PHP编译安装完毕,启动失败,提示 [-Jun- ::] ERROR: failed to open configuration ) [-Jun- ::] ERROR: failed to load configuration file '/usr/local/php/etc/php-fpm.conf' [-Jun- ::] ERROR: FPM initialization failed 原因:配置文件没有准备好 解决方法: 进入/usr/local/php/etc目录 cp php-fpm.…