ratslap icon indicating copy to clipboard operation
ratslap copied to clipboard

How do I use???

Open dylanjewel opened this issue 8 years ago • 8 comments

I'm a total noob to linux still learning I read the usage document but I don't understand how to actually install ratslap?? I downloaded files then what

dylanjewel avatar Apr 17 '17 03:04 dylanjewel

~/ratslap $ make Generating tags file... RatSlap Pulling from origin... Already up-to-date. Generating Changelog... Generating git header file... Package libusb-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libusb-1.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libusb-1.0' found gcc -march=native -O2 -pipe -Wall -Werror -ggdb -DDEBUG -DINFO -c main.c -o main.o main.c:30:31: fatal error: libusb-1.0/libusb.h: No such file or directory compilation terminated. Makefile:195: recipe for target 'main.o' failed make: *** [main.o] Error 1

dylanjewel avatar Apr 17 '17 04:04 dylanjewel

~/ratslap $ make Generating tags file... RatSlap Pulling from origin... Already up-to-date. Generating Changelog... Generating git header file... Linking ratslap... gcc -o "ratslap" -march=native -O2 -pipe -Wall -Werror -ggdb -I/usr/include/libusb-1.0 -DDEBUG -DINFO log.o main.o -lusb-1.0 BUILD COMPLETE: RatSlap (ratslap) v0.2.1-1-gd6b9714

dylanjewel avatar Apr 17 '17 04:04 dylanjewel

ratslap command still doesn't work

dylanjewel avatar Apr 17 '17 04:04 dylanjewel

no help? i'm noob i know but i need this thing

dylanjewel avatar May 06 '17 00:05 dylanjewel

To execute a command post build you need to either (1) add the directory path to your environment PATH variable or (2) execute the command directly from an out-of-path location by running ./ratslap from within the project directory, or using the absolute path of the binary.

Your problems are fundamentally basic Linux/Unix problems. Please attempt to be more considerate of developers who often don't have time to hand hold new users through introductory concepts in Linux. Beginner's frustration is understandable, but your problems are thus far not related to ratslap. Information on the PATH variable is widespread, but a basic overview is available here.

The step-by-step to use solution (2) as described above is the following:

$ git clone https://github.com/krayon/ratslap
$ cd ratslap
$ make
$ ./ratslap <flags as you want>

opensiriusfox avatar May 06 '17 00:05 opensiriusfox

To execute a command post build you need to either (1) add the directory path to your environment PATH variable or (2) execute the command directly from an out-of-path location by running ./ratslap from within the project directory, or using the absolute path of the binary.

Your problems are fundamentally basic Linux/Unix problems. Please attempt to be more considerate of developers who often don't have time to hand hold new users through introductory concepts in Linux. Beginner's frustration is understandable, but your problems are thus far not related to ratslap. Information on the PATH variable is widespread, but a basic overview is available here.

The step-by-step to use solution (2) as described above is the following:

$ git clone https://github.com/krayon/ratslap
$ cd ratslap
$ make
$ ./ratslap <flags as you want>

Getting below result while executing the command directly from the directory. Any suggestion to fix the this?

$ ./ratslap -h ./ratslap: symbol lookup error: ./ratslap: undefined symbol: libusb_set_option

tillcash avatar Jan 30 '19 16:01 tillcash

Sounds like a missing library, which is really strange if you managed to build it. I really can't say much more without context.

opensiriusfox avatar Feb 02 '19 03:02 opensiriusfox

@dylanjewel I ran these apt-get commands and then make and everything worked except for the interface number, which defaults to 1 but had to be 0 on my system and which resulted in the fact that the kernel driver could not be detached.

sudo apt-get install build-essential pkg-config linux-headers-amd64 libusb-1.0-0-dev

silkentrance avatar Jun 08 '20 13:06 silkentrance