Jump to content
flynn1970

Installing DASM

Recommended Posts

We are trying, have been trying for 2 weeks, to install DASM for this Udemy Class he is taking. I have noticed that with changes to the package the instruction set in the course seems outdated.

 

Right now I am at the point that I have re-re-redownloaded the package, ran 'make' and 'make test'. then I 'cd' to the directory/file I created for it's location and run 'dasm' in CLI. When I do I get a 'dasm: coomand not found' return. 

 

I am installing it in Debian Buster.

 

Any suggestions on where I screwed it up, or how to proceed??

Share this post


Link to post
Share on other sites

Forgot to say who 'he' is....😐....my son, that's who...must have forgotten to add it back in when I edited the original post.....

Share this post


Link to post
Share on other sites

By default the current directory is NOT part of the search path in Linux for executables.  To tell it to run something in the current directory you need to use ./ before the program, as in:

 

./dasm

 

 

  • Like 1

Share this post


Link to post
Share on other sites

Give this a shot in a term window...

cd /tmp
wget https://github.com/dasm-assembler/dasm/releases/download/2.20.13/dasm-2.20.13-linux-x64.tar.gz
tar -xvzf dasm-2.20.13-linux-x64.tar.gz
sudo cp dasm /usr/local/bin/

...if that goes without error, dasm should be in path, and you'll be able to run the "dasm" command from anywhere.

 

If you find wget isn't installed yet on your system, do a "sudo apt-get install wget".

Share this post


Link to post
Share on other sites

@Draconian, I tried that with each install and with any changes. It comes back with same error.

 

@Space Cowboy, except for the 'cd /tmp' command that is pretty much the same code as in the course. He used the .zip file and extracted it, I tried both and still get the same results.

 

I have even tried entering it into the $PATH in '/etc/profile' and nothing....

 

Crap!!!

 

Just tried SC's suggestion on my Arch install on another machine and it freaking worked....ok...gonna try it this way on the other machine...also I think I noticed why the 'instructor's' code didn't work. He changed the whole filename to 'dasm' after the extraction and 'cp'd' that instead of just the 'dasm' file contained in the tarball.....crap!!!

 

Thanks so much guys!!!! If it don't work on the other machine he'll just have to finish up on my machine.!!!!

 

Share this post


Link to post
Share on other sites

Excellent - happy assembling! :D

Share this post


Link to post
Share on other sites
Posted (edited)

I have spent years trying to find something my son would latch onto. This is his Junior year in highschool and I decided to add this course to the last semester and we hit this snag..hopefully, now that this is cleared he will get into it!!! Thanks again!!!

Edited by flynn1970
typo

Share this post


Link to post
Share on other sites

You're welcome. I'm glad we could help!

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...