码迷,mamicode.com
首页 > 其他好文 > 详细

debian下使用shell脚本时出现了 declare:not found 解决方法

时间:2014-09-28 19:48:35      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:style   使用   ar   sp   div   art   问题   on   c   

问题:出现declare:not found的提示

解决:原来,UBUNTU用的是dash(后来证明这个其实这个不是错误的原因:从#!/bin/bash到#!/bin/dash,依旧无法运行,在这写出这一点只为引起以后的注意)

只需要用sudo dpkg-reconfigure dash指令

然后在出现的菜单中按Tab键选择NO

再重新运行即可

debian下使用shell脚本时出现了 declare:not found 解决方法

标签:style   使用   ar   sp   div   art   问题   on   c   

原文地址:http://www.cnblogs.com/dreamforever/p/3998646.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!