Pregunta

First of all, I would like to apologize if I'm on the wrong stackexchange network, and secondly, sorry if I'm overlooking something simple.

I was moving files from my old hard drive from an old PC when I came across several password protected ZIP Files. However, since those files were a bit old, I forgot the passwords already. I tried every password I could come up with but I still came up empty. After several google searches, I found this tool/utility for Mac OS X that could help me. So I go to the downloads page and download the Mac OSX utility tool and the source code.

However, I am having problems executing the make command for the file. It says on the downloads page:

If you are using linux or another unix, you need to download the source code, uncompress it and type "make" to compile the utility.

So far, what I've tried is

$make /Users/myname/Downloads/aapr-0.01-source/Makefile 

I have also tried the other files in the source folder but nothing worked. After that, I'm pretty much blank. I tried double clicking the aapr file in the utility download for Mac (which is a Unix Executable) and it opens a new terminal window displaying the commands and such. Also, doing $aapr [options] [filename] only shows me -bash: aapr: command not found. I also updated XCodes command line tools.

Sorry if I'm missing out on something very basic, I don't usually use the terminal on the OS X.

¿Fue útil?

Solución

Try running

cd /Users/myname/Downloads/aapr-0.01-source
make

A Makefile contains rules for building files from other files but it is based on paths and contents, etc. which depend on your current location. So generally you need to be in the directory of the project for it to work.

Edit (copied from my comment):

To execute a command from a specific location (that isn't in the normal $PATH) you need to specify a path for it. So something like /bin/bash or ./aapr (where ./ means the current directory).

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top