Theos Building The Project - macos

i am facing compile Theos project on mac terminal. i am used OSX10.8.5
i have done all work for create Theos jailbroken Project
Install the latest Ios7.1 Sdk
Setting Up The Environment Variables.
$ export THEOS=/opt/theos
$ echo $THEOS
3.Getting theos
$ svn co http://svn.howett.net/svn/theos/trunk $THEOS
4.Getting ldi
$ sudo curl -s http://dl.dropbox.com/u/3157793/ldid > ~/Desktop/ldid
$ chmod +x ~/Desktop/ldid
$ sudo mv ~/Desktop/ldid $THEOS/bin/ldid
5.Install dpkg (Mac Port)
$ sudo port install dpkg
Creating A New Project
$ sudo THEOS/bin/nic.pl
set environment
$ export THEOS=/opt/theos/
$ export SDKVERSION=7.1
$ export THEOS_DEVICE_IP=192.168.1.151
Compile project
$ make
when i compile the theos project then mac terminal through error.
Making all for application fooProject...
mkdir: obj: Permission denied
make[1]: *** [obj] Error 1
make: *** [fooProject.all.application.variables] Error 2
please suggest to me. where am i wrong. i am new on theos so i trouble for solve this problem last 2 days.
Thank you

I made a proper answer because it is more visible than just a single comment.
I just reprocuded the error by creating a project using your commands.You need to create your project without using sudo (just type THEOS/bin/nic.pl), and then you'll be allowed to compile it with make, otherwise it will throw a Permission Denied as the files will be owned by the System Administrator.

Related

Permission Denied on ./vcpkg install

Has anyone encountered this error before with vcpkg? I'm running MacOS. To install vcpkg I ran:
git clone https://github.com/Microsoft/vcpkg
...
./bootstrap-vcpkg.sh
...
./vcpkg integrate install
zsh: permission denied: ./vcpkg
Also trying to run:
./vcpkg install wxwidgets
zsh: permission denied: ./vcpkg
Yep, it needs to be executed from the /bin directory and not from the /vcpkg directory. so that means (if you used brew to install it, otherwise it'll be somewhere else) ⤵︎
$ cd /usr/local/Cellar/vcpkg/2020.11-1/bin
(just open a file explorer window and find the bin folder in vcpkg, you can then copy the path name and use that for your cd command, or open a shell window at that directory)
Then all you have to do is simply run the original command ⤵︎
$ ./vcpkg integrate install

How to install Terragrunt 0.19.x version on Mac book

How to Install terragrunt 0.19.x Version on Macbook?
I tried brew install terragrunt which is Downloading 0.18.x only.
Option1:
brew install terragrunt
touch: /usr/local/Homebrew/.git/FETCH_HEAD: Permission denied
fatal: Unable to create '/usr/local/Homebrew/.git/index.lock': Permission denied
fatal: Unable to create '/usr/local/Homebrew/.git/index.lock': Permission denied
error: could not lock config file .git/config: Permission denied
==> Downloading https://homebrew.bintray.com/bottles/terragrunt-0.18.3.mojave.bottle.tar.gz
Already downloaded: /Users/rohithgundala/Library/Caches/Homebrew/downloads/f494cc7ebcfadf5e2610048e6c9f937e0151ff46cf0c226d83118e6d8ba704cc--terragrunt-0.18.3.mojave.bottle.tar.gz
==> Pouring terragrunt-0.18.3.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/terragrunt/0.18.3: 3 files, 19.6MB
Option2:
# Install Terragrunt
RUN wget -q -O ${BIN_DIR}/terragrunt "https://github.com/gruntwork-io/terragrunt/releases/download/v${TERRAGRUNT_VERSION}/terragrunt_linux _amd64" \
&& chmod +x ${BIN_DIR}/terragrunt
Output:
bin/terragrunt: cannot execute binary file
Install Homebrew as described at https://brew.sh/.
Then run the following:
git clone https://github.com/cunymatthieu/tgenv.git /usr/local/Cellar/tgenv
ln -s /usr/local/Cellar/tgenv/bin/* /usr/local/bin
tgenv install 0.19.31
tfenv use 0.19.31
tgenv is a version manager for Terragrunt. https://github.com/cunymatthieu/tgenv/blob/master/README.md
It's extremely handy when you need to use a specific version or multiple versions on the same machine.
tfenv is a related tool and does the same for the terraform command: https://github.com/tfutils/tfenv
For newer versions of Mac OS the kernel is Darwin and the above answer will not work with an error like:-
zsh: exec format error
Please confirm that by running command uname -a and download the file specific to that kernel "terragrunt_darwin_amd64" for whatever version you want.
So below should work :-
wget -q -O /bin/terragrunt "https://github.com/gruntwork-io/terragrunt/releases/download/v0.xx.x/terragrunt_darwin_amd64"
chmod +x /bin/terragrunt
terragrunt -v
I found Answer for this.
wget -q -O /bin/terragrunt "https://github.com/gruntwork-io/terragrunt/releases/download/v0.xx.x/terragrunt_linux_amd64"
chmod +x /bin/terragrunt
terragrunt -v

How to uninstall OpenCV in mac

I installed OpenCV this way
#After downloading OpenCV-3.0, in the directory:
echo "#define GTEST_USE_OWN_TR1_TUPLE 1" | cat > temp1
cat modules/ts/include/opencv2/ts/ts_gtest.h > temp2
cat temp1 temp2 > modules/ts/include/opencv2/ts/ts_gtest.h
mkdir build
cd build
cmake .. -Wno-dev
make -j8 && sudo make install
#Update your bash_profile:
~$ echo "export PYTHONPATH=/usr/local/lib/python2.7/site-packages/:$PYTHONPATH" >>
~/.bash_profile
#Close and open the Terminal
#Open python console and try to import cv2 to test if everything works
~$ python import cv2
The version is not stable and making errors I want to uninstall it to avoid problem when I install opencv using brew, should I just delete the folder ?
THis what I get when i did
cd build
make uninstall
-- Uninstalling "/usr/local/share/OpenCV/3rdparty/lib/libippicv.a"
CMake Error at cmake_uninstall.cmake:20 (MESSAGE):
Problem when removing "/usr/local/share/OpenCV/3rdparty/lib/libippicv.a"
make[3]: *** [CMakeFiles/uninstall] Error 1
make[2]: *** [CMakeFiles/uninstall.dir/all] Error 2
make[1]: *** [CMakeFiles/uninstall.dir/rule] Error 2
make: *** [uninstall] Error 2
If you used Homebrew to install you can use this command.
brew uninstall opencv3
You will not have to remove any directory such as /usr/local/Cellar/opencv3
Go to the build directory and run sudo make uninstall
Delete that line you added to ~/.bashrc
Remove the opencv directory

omnet++ installation error in ubuntu

i am getting the following error while running "make" command.
cd /home/bismillah/Desktop/omnetpp-4.1/out/gcc-release/src/utils && /home/bismillah/Desktop/omnetpp-4.1/src/utils/install-prog opp_lcg32_seedtool /home/bismillah/Desktop/omnetpp-4.1/bin
/bin/sh: /home/bismillah/Desktop/omnetpp-4.1/src/utils/install-prog: Permission denied
make[1]: * [all] Error 126
make[1]: Leaving directory `/home/bismillah/Desktop/omnetpp-4.1/src/utils'
make: * [utils] Error 2
The configure command worked properly,, kindly help;
The mentioned install-prog script should have an executable flag set on linux.
i.e. use
$ chmod +x install-prog
on it, but usually that should be set automatically once you extract the archive using
$ tar xvfz omnetdistro-vertsion.tgz
Probably you have extracted the Widnows version with unzip. I would try a reainsall and following closely the INSTALL guide.

problems at installation of sphinx on mac osx - can't even do the ./configure command

I tried to install sphinx on my Mac (OSX 10.6.7) but at the first installation step, I run into a problem.
According to the installation doku, http://sphinxsearch.com/docs/current.html#installation, one should do the following steps
$ ./configure
$ make
$ install
When I enter ./configure in my terminal, I get the following error message:
$ ./configure
> -bash: ./configure: No such file or directory
So I looked in the folder 'sphinx-2.0.1-beta-osx10.6-i386' and saw that there's no such file such as configure. Also
$ ls -a
> . api doc sphinx-min.conf.in
.. bin example.sql sphinx.conf.in
COPYING contrib log
INSTALL data sphinx-min.conf
When I tried other files such as sphinx-min.conf, I get
$ ./sphinx-min.conf
$ -bash: ./sphinx-min.conf: Permission denied
Also the sudo ./sphinx-min.conf doesn't work
$ sudo ./sphinx-min.conf
$ sudo: ./sphinx-min.conf: command not found
Any ideas?
It seems possible that you have downloaded a binary version, rather than the source code. You should check for binaries in the subdirectory bin.
You should also read the file INSTALL, which probably has installation instructions that go with the distribution you have downloaded.
You should download Source tarball (tar.gz) from http://sphinxsearch.com/downloads/release/ even it has the deceptive linux-penguin icon. After decompression the tarball you can follow the installation steps as http://pat.github.com/ts/en/installing_sphinx.html says.

Resources