Closed Smity closed 10 years ago
Smity, I had a similar problem when I built this project from source for the current (armhf) version of the Raspberry Pi. What I discovered was running the "make" command after "sudo apt-get ..." wasn't sufficient. I had to run "make install" so that the final binaries were moved to a directory (/usr/bin/) in the search path for the shell. Hope this helps. - cgridley
Hello, @Smity. If you install the Debian package I created and it works, then that should be all you need to do. It sounds like you installed all the prerequisites for building minimu9-ahrs from source, but you did not install minimu9-ahrs itself. The instructions for installing the Debian package are on the Wiki, which you provided a link to in your post.
If the Debian package does not work for you (for example you might have issue https://github.com/DavidEGrayson/minimu9-ahrs/issues/5 ) then you could compile the program yourself from source. You should be able to type "make" to build the binary and then run it with a command like "./minimu9-ahrs" from within the build directory. @cgridley's advice should work nicely too, as it should install the binary into your bin directory so you can run it easily from anywhere.
@cgridley, thanks for helping!
In general, Linux programs needs to be in a directory listed on your PATH environment variable for you to run them without specifying a directory. If they are not on your PATH, you need to specify the relative or absolute directory path to them. Examples:
Thank you both for the advice, but I'm afraid I'm sure exactly what either of you are saying -this method of installinfg software is very new to me. cgridley, I tried running "sudo apt-get install libi2c-dev libboost-program-options-dev make install" (and many other variants of that), but the terminal told me it could not find the package "install". I suppose that means that every string after "sudo apt-get install" must be an installable package? If that's the case, can you please advise me on the correct syntax you used?
David, your hypothesis of me installing all the prerequisites for building minimu9-ahrs from source, but not installing minimu9-ahrs itself seems to make sense. What I'm having trouble figuring out is how to do that, as the wiki directs me to the readme, and the only instruction there is to install the prerequisites (at least, I think that's what it means).
Thanks again for the help.
The wiki has lots of information on it. Did you see the section entitled "Installing minimu9-ahrs" ?
Yeah, I did, but isn't the information only relevant to armel systems?
Yeah, I think so. Are you sure you have an armhf system? If not, could you just try installing that Debian package as it says to do in the Wiki, and tell me what the result is?
Maybe a bit more detailed explanation: As far as I understand you are trying to compile/build the program yourself, but you where mixing things up. Basically you have 4 steps:
Oh yeah, @smity: in your first post you wrote "sudo apt-get install libi2c-dev libboost-program-options-dev make". I think you misinterpeted the README file. Note how in the README file, "make" is on a separate line. That means make is different command and it should not be part of the previous command. There are two commands specified in the README file, and the second one is simply "make". For the second one to work, you need to have a copy of my source code and the current directory (pwd) needs to be set to the directory where the source code is.
Haha! Got it! Thanks so much for your explanations, guys. Seriously, I really appreciate it.
David,
Your software looks great, and I'm very exited to use it. However, after following your instructions on your wiki (https://github.com/DavidEGrayson/minimu9-ahrs/wiki), I still can't seem to get minimu9-ahrs to run. I installed using the command "sudo apt-get install libi2c-dev libboost-program-options-dev make" because I'm using the armhf EABI (so says the command line when I try wget). I don't see any errors, and everything seems to have worked fine, but when I try entering "minimu9-ahrs --mode raw" into the terminal I get the error "-bash: minimu9-ahrs: command not found". I'm pretty new with this, am I simply missing a step somewhere?