"You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory." - macOS

Hi there,
After
Code:
gem install xcode-install
It returned
Code:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
How to resolve this issue?
Thanks in advance.

Related

[Q] adb mount system help

Hi guys i have read around and i have seen that some experienced the same problem but i couldn't find and answer so here i go: i am trying to push an app to /system/app but it seems that i can't remount the system as read-write:
C:\AndroidSDK\tools>adb push app.apk /system/app
failed to copy 'app.apk' to '/system/app/app.apk': Read-only file system
C:\AndroidSDK\tools>adb remount
remount failed: Operation not permitted
C:\AndroidSDK\tools>adb shell sysrw
sysrw: not found
do you think you can help, please?
i have superuser installed and busy box but when i try to update busy box it gives me an error saying that: The application failed, either because your device is not nand unlocked or we were unable to remount....

[Q] media scanner permission denied on '/storage/sdcard0/.android_secure/',

Hi,
Trying to figure out why media scanner service is running all the time, draining my battery I came accross this error in logcat:
Code:
W/MediaScanner( 2774): Error opening directory '/storage/sdcard0/.android_secure/', skipping: Permission denied.
I tried fixing permissions, and it still happens.
I tried changing permissions, in order to make media scanner work without errors, by running:
Code:
chmod 777 /storage/sdcard0/.android_secure
which resulted in the following error:
Code:
Unable to chmod /storage/sdcard0/.android_secure: Read-only file system
I'm running slim bean 2.7 on my i9000 sgs.
Any idea how to resolve this issue?
ziflingus said:
Hi,
Trying to figure out why media scanner service is running all the time, draining my battery I came accross this error in logcat:
Code:
W/MediaScanner( 2774): Error opening directory '/storage/sdcard0/.android_secure/', skipping: Permission denied.
I tried fixing permissions, and it still happens.
I tried changing permissions, in order to make media scanner work without errors, by running:
Code:
chmod 777 /storage/sdcard0/.android_secure
which resulted in the following error:
Code:
Unable to chmod /storage/sdcard0/.android_secure: Read-only file system
I'm running slim bean 2.7 on my i9000 sgs.
Any idea how to resolve this issue?
Click to expand...
Click to collapse
Looking for something else and saw this old post. For future reference, just create a she'll script in /system/xbin and use busybox to run a short script with umask=0000 and the remount sdcard0 and probably extSdCard also just to be safe until it's figured out. Can use managers or taskbomb to run it...

[Q] CWM unable to mount int / ext sdcard

I am sure this has been asked before but I cannot find any solutions so I am asking again. I flashed CWM v5.0.2.8 using Odin on my GM2 successfully but I have the following problems:
1. runme.bat from rootme.zip does not work. I get the below:
--- pushing busybox
error: device not found
--- correcting permissions
error: device not found
--- remounting /system
error: device not found
--- copying busybox to /system/x
error: device not found
--- correcting ownership
error: device not found
--- correcting permissions
error: device not found
--- installing busybox
error: device not found
error: device not found
--- pushing SU binary
error: device not found
--- correcting ownership
error: device not found
--- correcting permissions
error: device not found
--- correcting symlinks
error: device not found
error: device not found
--- pushing Superuser app
error: device not found
ALL DONE!!!
Press any key to continue . . .
2. I am in a CWM bootloop now - I cannot boot to OS anymore
3. And the biggest - CWM cannot view mount my int / ext sdcard (tried TWRP, same problem). Fixing permissions doesnt help. Wiping doesnt help as it stops at /sdcard/android.secure
Any help will be appreciated. Thanks.

“Unable to open log device '/dev/log/main': No such file or directory”

Hello guys, i post this cuz i have no way just to ask you,
i have CM11-13012014Nightly and Semaphore KK 3.4.0s
i tried all the ways to enable Log Setting
Code:
Dial this: *#*#2846579#*#*
Service menu will appear.
Go to "ProjectMenu" -> "Background Setting" -> "Log Setting"
Open "Log switch" and set it to ON.
Open "Log level setting" and set the log level you wish.
Reboot the phone.
the number is not work
Code:
Open: /system/etc/init.d/××× (not the same file on different ROMs, find the right file)
Find the line that says: rm /dev/log/main
Change the line to: # rm /dev/log/main (comments out the line, rm = remove, in case you were wondering)
Save and reboot
not work- i found nothing
Code:
[IMG]http://i.stack.imgur.com/Ly4M1.jpg[/IMG]
Restart and the logcat should be working
Code:
Open up CMD or Terminal and type:
adb shell
logcat-enable
reboot
this too not work....
what can i do.... any ideas please
some help @pawitp @stratosk !!!?
sycolon said:
some help @pawitp @stratosk !!!?
Click to expand...
Click to collapse
First of all, wrong section.
Secondly, you need to load the logger module, by insmod system/lib/modules/logger.ko.
ts1506 said:
First of all, wrong section.
Secondly, you need to load the logger module, by insmod system/lib/modules/logger.ko.
Click to expand...
Click to collapse
I did it normal and in su mod and it give me
Code:
insmod: init_module 'system/lib/modules/logger.ko' failed (Exec format error)
@pawitp @stratosk @ts1506
I did it in normal and in su mod and it give me error
insmod: init_module 'system/lib/modules/logger.ko' failed (Exec format error)
sycolon said:
@pawitp @stratosk @ts1506
I did it in normal and in su mod and it give me error
insmod: init_module 'system/lib/modules/logger.ko' failed (Exec format error)
Click to expand...
Click to collapse
Logged module have to be loaded during early boot in order to work properly. You have to enable it in Semaphore manager (logger option) and reboot your phone.
sycolon said:
I did it normal and in su mod and it give me
Code:
insmod: init_module 'system/lib/modules/logger.ko' failed (Exec format error)
Click to expand...
Click to collapse
stratosk said:
Logged module have to be loaded during early boot in order to work properly. You have to enable it in Semaphore manager (logger option) and reboot your phone.
Click to expand...
Click to collapse
I have tried to make it but still not work and Semaphore manager gives that it's enabled but its not !!! :crying:
Thanks for all type of help
i found big problem with CM11 nightly 17012014 and semaphore kk and system was so slow and have troubles with apps and gapps
i flashed Makay kernel and all work little bit better even the logcat too
Thanks for all your work guy i wish you keep updated with your work and the semaphore kernel

apply.sh: permission denied

I would like to compile a rom from source, however I don't . get very far:
Code:
8.3. Apply device specific patches (also repeat this step whenever the patches in the directory "patch" are modified):
$ cd device/samsung/smdk3470-common/patch
$ ./apply.sh
(from: https://github.com/cm-3470/android_device_samsung_kminilte)
But I always get permission error, with su or sudo:
Code:
-bash: ./apply.sh: Permission denied
What am I doing wrong? All the directories are owned by the user running this command.
Could you upload some screenshots of your console? so it's easier to help you, I've compiled roms and I know some things
mongo0 said:
I would like to compile a rom from source, however I don't . get very far:
Code:
8.3. Apply device specific patches (also repeat this step whenever the patches in the directory "patch" are modified):
$ cd device/samsung/smdk3470-common/patch
$ ./apply.sh
(from: https://github.com/cm-3470/android_device_samsung_kminilte)
But I always get permission error, with su or sudo:
Code:
-bash: ./apply.sh: Permission denied
What am I doing wrong? All the directories are owned by the user running this command.
Click to expand...
Click to collapse
I wouldn't do this as root. Either way,make sure the permissions are correct and the apply.sh script is executable. If the script isn't executable even doing it as root will not work.

Categories

Resources