关于OpenSUSE安装HLA编译时,提示:Could not open include file "stdlib.hhf" 的解决办法之一
2012-05-02 18:52
1271 查看
因为我换了OpenSUSE这个linux系统,所以HLA(高级汇编语言,你可通过清华大学出版社的“汇编语言编程艺术”来学习,PDF文档我以上传)又得重新安装了,在这里我再次贴一下HLA的安装方法,并且解决初学者都会遇到的一个问题,如标题所述。
HLA的官网是http://homepage.mac.com/randyhyde/webster.cs.ucr.edu/index.html,建议你加入书签,这样方便学习。
下载地址是:http://homepage.mac.com/randyhyde/webster.cs.ucr.edu/HighLevelAsm/dnld.html
这次安装为了让所有用户都可以使用,所以先择安装在/usr目录,
如果你想学习linux系统,那你必须要懂得使用命令来解决你的问题,尽管像cp 、mv、 cd等这些很简单的命令。
我以我的用户目录来描述HLA的安装过程,打开终端。
进入下载目录,解压
cd ./Downloads
gzip -d linux.hla.tar.gz
tar xvf linux.hla.tar
切换为root,将hla目录复制到/usr目录下
su root
cp ./usr/hla /usr
回到自己的目录,编辑.bashrc (.bashrc就是先前在bash中运行的命令列表)
exit
cd ~
emacs .bashrc
你也可以用VI打开,输入
DBROOT=/usr/hla
PATH=$DBROOT/bin:$DBROOT/pgm:/usr/hla:$PATH
hlalib=/usr/hla/hlalib/hlalib.a
export hlalib
hlainc=/usr/hla/include
export hlainc
hlatemp=/tmp
export hlatemp
保存退出,然后
source .bashrc
输入
hla -v
你将看到它的有关信息。
配置是完成了,当自己满心欢喜去编译时,却总是提示Error in file "hw.hla" at line 2 [errid:4944/hla.flx]:
Could not open include file "stdlib.hhf"
(path="./include/stdlib.hhf/stdlib.hhf").
Near: << ) >>
而后经过不断的google,终于找到了解决办法,但自己使终不知道这个问题的根源,呵呵,本人说到底还是linux新手。
当出现这些提示,一个最直接了当的办法就是在编译时给它指定路径,所以
hla -i:/usr/hla/include hw.hla
这样就编译就通过了,先看看结果吗?
./hw
Hello,World of Assembly Language
HLA的官网是http://homepage.mac.com/randyhyde/webster.cs.ucr.edu/index.html,建议你加入书签,这样方便学习。
下载地址是:http://homepage.mac.com/randyhyde/webster.cs.ucr.edu/HighLevelAsm/dnld.html
这次安装为了让所有用户都可以使用,所以先择安装在/usr目录,
如果你想学习linux系统,那你必须要懂得使用命令来解决你的问题,尽管像cp 、mv、 cd等这些很简单的命令。
我以我的用户目录来描述HLA的安装过程,打开终端。
进入下载目录,解压
cd ./Downloads
gzip -d linux.hla.tar.gz
tar xvf linux.hla.tar
切换为root,将hla目录复制到/usr目录下
su root
cp ./usr/hla /usr
回到自己的目录,编辑.bashrc (.bashrc就是先前在bash中运行的命令列表)
exit
cd ~
emacs .bashrc
你也可以用VI打开,输入
DBROOT=/usr/hla
PATH=$DBROOT/bin:$DBROOT/pgm:/usr/hla:$PATH
hlalib=/usr/hla/hlalib/hlalib.a
export hlalib
hlainc=/usr/hla/include
export hlainc
hlatemp=/tmp
export hlatemp
保存退出,然后
source .bashrc
输入
hla -v
你将看到它的有关信息。
配置是完成了,当自己满心欢喜去编译时,却总是提示Error in file "hw.hla" at line 2 [errid:4944/hla.flx]:
Could not open include file "stdlib.hhf"
(path="./include/stdlib.hhf/stdlib.hhf").
Near: << ) >>
而后经过不断的google,终于找到了解决办法,但自己使终不知道这个问题的根源,呵呵,本人说到底还是linux新手。
当出现这些提示,一个最直接了当的办法就是在编译时给它指定路径,所以
hla -i:/usr/hla/include hw.hla
这样就编译就通过了,先看看结果吗?
./hw
Hello,World of Assembly Language
相关文章推荐
- 关于dll文件的生成以及找不到jni.h的解决办法(fatal error C1083: Cannot open include file: 'jni.h':)
- 生成JNI的DLL时提示找不到jni.h的解决办法Cannot open include file: 'jni.h': No such file or directory
- 关于写入文件缓存时报"java.io.FileNotFoundException open failed (is a director)"错误的解决方法
- 生成JNI的DLL时提示找不到jni.h的解决办法Cannot open include file: 'jni.h': No such file or directory
- C++ builder 6 编译时提示Unable to open file 'DCLUSR.LIB' 之解决办法
- 关于perl的open (MYFILE, "file1") || die ("Could not open file")语句执行原理,路过的高手来指点一二
- tufao安装过程中Could not find a package configuration file provided by "Qt5Core"解决办法
- XP无法安装提示"file setupdd.sys could not be loaded"
- Yii “CDbConnection failed to open the DB connection: could not find driver"解决办法
- 编译时出现fatal error C1853: "debug/xxx.pch" is not a precomplied header file with......错误的原因及解决办法(转)
- 关于protues 中提示“can not open "C.................LISA3199.SDF”的问题的解决
- C++ builder 6 编译时提示Unable to open file 'DCLUSR.LIB' 之解决办法
- Eclipse编译JNI时提示"Fatal: Unable to open makefile"解决办法
- ADS编译错误Error: Fatal L6002U:Could not open file:.....解决办法
- d6安装Dev控件后,经常会出现编译时提示"file not found 'system.pas"
- 关于SQL Server 2008 安装提示"重新启动计算机失败"的解决办法
- eclipse 无法启动AVD,出现Starting emulator for AVD '' PANIC: Could not open: 错误提示的解决办法
- ads 编译时出现(Fatal)L6002U:Could not open file 的解决办法
- 生成JNI的DLL时提示找不到jni.h的解决办法(fatal error C1083: Cannot open include file: 'jni.h':).
- 关于CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files… ‘Access is denied.’ 的解决办法