Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install hcitool in mac os terminal

Hello there guys i have been trying to use hcitool on mac os terminal but whenever i type hcitool scan the following error is appeared -bash: hcitool: command not found i have tried pip install hci and pip install hcitool but the following error is shown

  ERROR: Could not find a version that satisfies the requirement gatttool (from versions: none)

ERROR: No matching distribution found for gatttool

please help me with this

like image 597
Tanay Kumar Avatar asked Jun 18 '19 12:06

Tanay Kumar


1 Answers

Commands such as hcitool, gatttool, hciconfig, etc. are part of the BlueZ package which works on Linux only. MacOS on the other hand is UNIX-core and therefore the commands will not run on a MacOS operating system. There have been hacks before to get some sort of functionality on MacOS OSs but the solution is always incomplete.

Your next best bet will be to use a Virtual Machine running a Linux guest (e.g. Ubuntu) and then use the BlueZ commands from within that VM OS.

I hope this helps.

like image 143
Youssif Saeed Avatar answered Oct 22 '22 22:10

Youssif Saeed