The last one is an example of how variables work. "$(command)" means "run this command and just put the output here", so "echo $(whoami)" means literally "print whatever output the "whoami" command will produce". "echo $toutou", again, just prints the empty variable toutou "echo $whoami" literally means "print the value of a variable called whoami" - nothing happens, I didn't create the variable. "whoami" is a command that prints (returns as an output) your current username, as in "who am I?" Look at this example: (the echo command just prints output) (But that's okay, this can be a little confusing) $ sudo chown -R $MY_USERNAME /usr/local/CellarĬorrect idea, incorrect usage. Maybe that's partly where the above problems lie.Īlso, will this app end up in the usual /Applications/ folder, another "common access" folder (such as /System/ or /Library/) or somewhere within my own user folder so I have to use the "sudo" command every time I need to use this particular command line app? And this is where things get confusing, because when I'm asked to "sudo" I never get it to work unless I first do a "login admin_username" (where "admin_username" of course is the admin's username, followed by its password), but then again I don't get access to the files/folders that belongs to my standard user. I always log in as a "standard" user, but if I install something I have to enter the "admin" username and password. I might add that my Mac is set up for multiple users. Minipro.c:1:10: fatal error: 'libusb.h' file not found Cc -g -O0 `pkg-config -cflags libusb-1.0` -c -o byte_utils.o byte_utils.cĬc -g -O0 `pkg-config -cflags libusb-1.0` -c -o database.o database.cĬc -g -O0 `pkg-config -cflags libusb-1.0` -c -o minipro.o minipro.c
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |