I create new project on react native when I try to run on Xcode getting error
[!] /bin/bash -c
set -e
mkdir -p /Users/shohabkorejo/Desktop/ReactNative /Luxxitt-user/node_modules/react-native/scripts/../React/FBReactNativeSpec/FBReactNativeSpec && touch /Users/shohabkorejo/Desktop/ReactNative /Luxxitt-user/node_modules/react-native/scripts/../React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h /Users/shohabkorejo/Desktop/ReactNative /Luxxitt-user/node_modules/react-native/scripts/../React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm
mkdir: /Luxxitt-user: Read-only file system
I try many way any one can help me how to resolve this
Related
I have a .spec file with code somewhat like this:
%files
%defattr(-,xyz, xyz)
%verify(md5 size mtime mode) %attr(755, xyz, xyz) /usr/bin/app1
%verify(md5 size mtime mode) %attr(755, xyz, xyz) /usr/bin/app2
%post
mkdir -p /apps/1/logs
mkdir -p /apps/2/logs
mkdir -p /apps/3/logs
mkdir -p /apps/4/logs
mkdir -p /apps/5/logs
ln -sf /usr/bin/app1 /usr/bin/app3
touch /home/xyz/abc.log
will the %defattr also affect the default attributes of files and directories getting created in the post section??
No. You'll need to explicitly chown/chmod anything you do in %post. It's preferred to not have them in %post because things can break that way (like rpm -V). Why wouldn't you want that to be done in %build?
I am trying to compile a c code and install it using yocto. it is successfully compiled using do_compile.
I tried to install using do_install, it is giving bellow error.
ERROR: Failed to spawn fakeroot worker to run /PATH_TO_THIS/example_0.1.bb:do_install: [Errno 2] No such file or directory
Please find my bb file below
SUMMARY = "Simple helloworld application"
SECTION = "examples"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR} /MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "file://sample.c"
S = "${WORKDIR}"
do_compile() {
x86_64-linux-gnu-gcc sample.c -o test_example
}
do_install() {
install -d ${D}${bindir}
install -m 0755 test_example ${D}${bindir}
}
Based on your comment above that you are using -b - that is almost certainly the cause of this issue. When you use -b bitbake will print this warning:
WARNING: Buildfile specified, dependencies will not be handled. If this is not what you want, do not use -b / --buildfile.
One of the dependencies that you may be missing is the fakeroot program (pseudo). Using -b is likely preventing that from being built.
Instead of using -b, you should put the recipe into a place bitbake can find it (to test, could be meta/recipes-extended/example, but when you do it properly you should create your own layer and put it there). Then you can just build it like any other recipe:
bitbake example
I'm using a windows batch file to run vxWorks build.
In order to run the build, I need to run the wrenv.exe utility that set up the build environment.
I'm trying the following, but the update operation fails
call C:\WindRiver32\wrenv.exe -p vxworks-6.8
call wrws_update.bat -data "%WORKSPACE%" -l %APP_MODULE% -b build -c %CPU%
How can I force the batch to "remember" the wrenv.exe settings?
The two commands may be combined, like this:
call C:\WindRiver32\wrenv.exe -p vxworks-6.8 wrws_update.bat -data %WORKSPACE% -l %APP_MODULE% -b build -c %CPU%
This will run the command "wrws_update.bat -data %WORKSPACE% -l %APP_MODULE% -b build -c %CPU%", inside the "C:\WindRiver32\wrenv.exe -p vxworks-6.8" shell, returning control upon completion.
I'm new to postgis and I'm not able to get through raster2pgsql.
The problem is:
I want to import a raster (.tif) file using raster2pgsql. But after running the command:
raster2pgsql -s 4326 -I -C -M c:\Users\Dell\Desktop\rastergeo.tif -F -t 512*512 public.demelevation > elev.sql
I'm getting the error message:
ACCESS DENIED
Can anyone please guide me, right from beginning?
I'm using geoserver.
You do not have write access to the folder where you are trying to write elev.sql
Change you command to include a more specific path to save your file. For example if you were to save it in the same place as the original raster you would save it to...
raster2pgsql -s 4326 -I -C -M c:\Users\Dell\Desktop\rastergeo.tif -F -t 512*512 public.demelevation > c:\Users\Dell\Desktop\elev.sql
Instead of trying to save into the directory where raster2pgsql is being run from, probably in postgres/verNum/bin -- where you probably don't have permission.
I've compiled my C source using cc test.c, and it did generate a.out file.
However when I run it I get this error -
bash: ./a.out: Permission denied
My source is not in the home directory, it is on different FAT-32 partition, so I've mounted the drive in which the code is using the following command -
$ udisks --mount /dev/sda7 --mount-options umask=022
Mounted /org/freedesktop/UDisks/devices/sda7 at /media/48E9-FD53
$ cd /media/48E9-FD53/C
Then I compile my code using cc
I've also tried gcc. But still I get the same error.
Then I did - chmod +x a.out, still the same problem. Also with(chmod 755 a.out) and chmod u+x a.out.
I've also tried compiling and executing the program using sudo.
I've also tried - sudo chown sannidhya:sannidhya a.out.
I've tried every thing that I found after googling, still couldn't get it to work.
How can I run .out file (without moving it to home directory)?
Note - I am using Ubuntu 12.04 LTS.
But a weird thing here is, even after running chmod +x a.out, on running - ls -l a.out, I get-
-rw-r--r-- 1
also when I check the properties of a.out, under Permissions tab, when I check Allow executing file as program,the tick appears and quickly disappears.
Seems that you've mounted the partition with with no-exec flag set. You'll have to remount the partition:
sudo mount -o remount -o exec /dev/sda7
I'd guess you are doing all of this on an NTFS/FAT partition that you probably share with windows. chmod permissions do not work on them.
You should move it to an ext4 (or equivalent linux) partition, and then perform permission changes.
Else, for an NTFS/FAT partition, you set permissions for the entire partition, at the time of mounting.
For example,
sudo umount /mnt/my_partition
sudo mount -t vfat -o rw,auto,user,fmask=0000,dmask=0000 /dev/sda7 /mnt/my_partition
This would give you 777 on all directories and files (eeeek!), but once set, you can't modify them till you remount.
Here is another way to do it using fstab
cat /etc/fstab
LABEL=cloudimg-rootfs / ext4 defaults 0 1
D: /mnt/d drvfs defaults,user,metadata,exec 0 0