OS X source ~/.profile 找不到文件或目录
2016-01-20 19:34
204 查看
问题: 在mac上安装torch (http://torch.ch/docs/getting-started.html),执行完命令
add the following lines to your shell profile:
. /Users/hll/torch/install/bin/torch-activate
,此时出错:“-bash: /Users/hll/.profile: No such file or directory”。
解决方法:
1) 建立一个.profile文件
vim ~/.profile
2) 在新打开的.profile文件中,加入环境变量:
. /Users/hll/torch/install/bin/torch-activate
3) 通过 :wq 保存并退出vim编辑器
4) 再次运行 source ~/.profile ,成功通过!
./install.sh 后,提示:
“
add the following lines to your shell profile:
. /Users/hll/torch/install/bin/torch-activate
” ,没有按照该提示添加环境,就运行source ~/.profile
,此时出错:“-bash: /Users/hll/.profile: No such file or directory”。
解决方法:
1) 建立一个.profile文件
vim ~/.profile
2) 在新打开的.profile文件中,加入环境变量:
. /Users/hll/torch/install/bin/torch-activate
3) 通过 :wq 保存并退出vim编辑器
4) 再次运行 source ~/.profile ,成功通过!
相关文章推荐
- source命令执行SQL脚本文件
- 使用OS Watcher监控操作系统
- 什么是Mac OS X?跟Linux有什么区别
- 方便的IE源代码工具Instant Source
- DOS命令全集(一)
- DOS下内存的配置
- SqlServer应用之sys.dm_os_waiting_tasks 引发的疑问(中)
- SqlServer应用之sys.dm_os_waiting_tasks 引发的疑问(上)
- 基于SQL Server OS的任务调度机制详解
- mac系统OS X10.10版本安装最新5.7.9mysql的方法
- DOS下的必备工具
- SqlServer应用之sys.dm_os_waiting_tasks 引发的疑问(下)
- DOS 下的批处理文件
- 在MAC OS X上安装MYSQL
- mysql source 命令导入大的sql文件的方法
- Mysql导入导出工具Mysqldump和Source命令用法详解
- python使用os模块的os.walk遍历文件夹示例
- 举例详解Go语言中os库的常用函数用法
- DOS命令全集(二)
- iOS、Mac OS X系统中编程实现汉字转拼音的方法(超级简单)