nib2objc: command not found - iphone

I've been trying to convert NIB files to Objective C code. I found the project NIB2OBJC on GitHub: https://github.com/akosma/nib2objc but when I type the command line:
nib2objc tab.xib > tab.m
I got the following error:
-bash: nib2objc: command not found
Could you tell me what am I missing?
Thanks

If you're in the folder where nib2objc is located, then you've to run ./nib2objc. Otherwise, if it's located in /bin/, /usr/bin/ or any other folder in $PATH, then make sure that it has execution permissions:
$ which nib2objc
/foo/bar/nib2objc
$ stat /foo/bar/nib2objc
$ chmod a+x /foo/bar/nib2objc
Good luck!

Related

I am unable make file or directory in Visual Studio Code in Win Subsystem for Linux

I use this guide. When I take the step "Add a source code file", I am shown this report:
Unable to write file 'vscode-remote://wsl+ubuntu-20.04/home/alex/TEST/helloworld/helloworld' (NoPermissions (FileSystemError): Error: EACCES: permission denied, open '/home/alex/TEST/helloworld/helloworld')
I don't know what to do, can some one help me?
The VScode needs permissions thus
Try this command on your WSL terminal
sudo chown -R username /path/to/working/directory
Replace :
'username' with your username and the path of your directory
So I had the same problem and changing ownership via sudo chown -R username <path> did not work for me.
Simple solution!
My issue: Downloaded files for coursera project in zip. Copied files to ubuntu home/taylor/projects folder. and then tried accessing in vscode with code . I received the read error.
Solution:
go to your linux terminal.
Access the folder containing the files you are trying to work on.
For Example: app.py forms.py models.py in the projects folder. got to projects folder.
~/projects ls
app.py forms.py moodels.py routes.py
#they should be white meaning know permissions granted.
grant permissions
a. sudo chmod 777 app.py forms.py models.py routes.py
or
b. sudo chmod +rwx app.py forms.py models.py routes.py #r=read w=write x=execute
Try the above one by #uday Pratap, If not Working try this one's :
sudo chmod -R 777 folder_name_where_your_file_exists
or
sudo chmod -R 755 folder_name_where_your_file_exists

tar: Error opening archive: Failed to open 'wekaUT.tar.gz' in Command Line Windows 10

I want to extract a tar file that I obtained at tar.gz file. However, when I try: tar -xzvf wekaUT.tar.gz
I get the following error:
tar: Error opening archive: Failed to open 'wekaUT.tar.gz'
I see the file in my directory as wekaUT.tar.gz.
Any help would be much appreciated.
Just commenting here as I ran into the same issue. In windows "tar xfv .tar.gz" should work if you open the command prompt as administrator.
In my case, I was building the file to untar dynamically using a variable like
tar -xzvf "$SOME_TEMP_DIR/a_cool_file.tar.gz"
And encountered this error because of the quotes. If I updated it to:
tar -xzvf $SOME_TEMP_DIR/a_cool_file.tar.gz
It worked :)
In windows compand promt use quotation marks ("") when specifying the path. It will work properly
Exaple : tar -xvzf "C:/PATH/TO/FILE/FILE-NAME.tar.gz" -C "C:/PATH/TO/FOLDER/EXTRACTION"
tar -xvzf "C:/PATH/TO/FILE/FILE-NAME.tar.gz"

unable to set up spark notebook getting the no such command error and permission denied errors

I am trying to run spark notebook on my machine and I followed the procedure mentioned in "spark notebook io". During this procedure, I am giving the command bin/spark-notebook, in the terminal, and I am getting
Error: permission denied
and when I am using sudo bin/spark-notebook I am getting
Error: no such command
How can I resolve this issue?
Changing permissions fixed the bin/spark-notebook command for me. Go to the folder containing the parent of the bin folder (I renamed mine sparknotebook). Then execute chmod 755 sparknotebook and you should be able to proceed with cd sparknotebook and bin/spark-notebook should work.
Similar to Ricky, I changed the access permissions, but with the following command worked for me:
chmod +x [name of root directory of the expanded distribution]
I just run
sudo chmod +x bin/spark-notebook
on my macbook air and it works

ln -s command failing in Solaris

I have a situation where my installation process runs a script which creates symbolic links for couple of files. The case here is the links are not being created and ln -s command is getting failed with the below error.
No such file or directory
Where as the required files exits in the given location. I tried running the ln -s command from command prompt, which is working perfectly fine. What could be the cause.? Any thoughts?
try
ln -sf
using also the absolute path for the source and destination
Regards
Claudio

Using chmod for /usr directory

I used the following command to change the permissions of the usr directory from root
root> chmod -R 777 /usr
Now when I try to use the sudo command it gives the following error:
sudo: must be setuid root
On googling, I found that this error happens if /usr is chowned and I need to reinstall Ubuntu. But am I getting this error for chmod? Is there anyway to fix this problem without reinstalling?
To setuid /usr/bin/sudo: chmod +s /usr/bin/sudo.
But you changed ALL file/directory attributes in /usr recursivly (-R). You really should try some rescue mode. I don't think you'll have any chance to repair it.