LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-10-2019, 03:03 PM   #1
goldennuggets
Member
 
Registered: Feb 2003
Location: USA
Distribution: Kubuntu, Manjaro
Posts: 239

Rep: Reputation: 24
Installing HLA - $PATH in Ubuntu


I'd like to start messing around with HLA a little, so I downloaded the files and was following the introductory information on this website:
http://www.plantation-productions.co...elloWorld.html

It mentions placing HLA in the path and exporting other variables.
There is no PATH variable in my .bashrc file. So, after some research I found that this is most likely in my .profile file. I updated it to include /usr/hla/ as explained in the above document.

This had no effect, even after issuing
Code:
source .profile
I'm at a loss as to what to try next and how to update the PATH variable as well as exporting the others to make this work properly. Currently using 64bit Kubuntu 19.04.

I'd appreciate any insight or help you can provide. Thanks!
 
Old 05-10-2019, 03:35 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,735

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
One way:
In your .bashrc file put a line like
Code:
export PATH="/usr/hla:$PATH"
or, if you want it last instead of first
Code:
export PATH="$PATH:/usr/hla"
then source .bashrc or
Code:
. .bashrc
Entries in PATH don't typically end with a /, so /usr/hla rather than /usr/hla/ -- double-check your documentation about that.

You can also do this in .bash_profile (not .profile), but as I understand it, doing so in .bashrc insures every instance of the shell has the update PATH.
 
Old 05-10-2019, 05:35 PM   #3
goldennuggets
Member
 
Registered: Feb 2003
Location: USA
Distribution: Kubuntu, Manjaro
Posts: 239

Original Poster
Rep: Reputation: 24
Thank you that was perfect!



This is an aside, but once the above worked, the file could not be linked because I'm on a 64 bit and ld is trying to link as 32bit.

I found this resource: http://www.masmforum.com/board/index...c=17138.0;wap2

It's mistyped in the solution, so here is the correct solution.
If you're using HLA and you want link on 64bit, you need to pass a parameter to ld.
The way to do this is to include the -l option when compiling.

Code:
hla -lmelf_i386 -v hw
 
  


Reply

Tags
$path, assembly, hla, kubuntu, ubuntu



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with HLA (high level assamber) johnconnor Linux - Software 4 04-13-2014 06:43 PM
Need help modifying my hla program. dlbonano Programming 2 12-16-2011 07:02 PM
need help with hla dlbonano Programming 13 12-15-2011 09:29 AM
[SOLVED] Is there a 64 bit HLA? rblampain Programming 5 03-21-2010 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration