All, Can someone help me in the installation proce...
# magic
g
All, Can someone help me in the installation process of Magic? Here's the steps I have followed: 1. git clone git://opencircuitdesign.com/magic 2. cd magic 3. ./configure --prefix=/home/user/tools/magic 4. make (did not cd anywhere) 5. make install (did not cd anywhere) The process seems to have completed fine, however when I type magic -noconsole to check whether it is installed, it says "command magic not found, but can be installed with sudo apt install magic" Is there anything I am doing wrong? Thanks
1
r
you may want to add the installation directory to your PATH
export PATH=$PATH:/home/user/tools/magic/bin
g
Thanks Roel. This command needs to be after step 4 of my list above?
v
Following commands does the job of installing magic. Please try these.
git clone <https://github.com/RTimothyEdwards/magic>
cd magic/
./configure
make
sudo make install
r
before you run magic, Linux only looks for executable programs in the list of directories specified by the path. You can add the line to the bottom of the
.bashrc
file that you find in your home directory to avoid having to type it each time you start a new shell
if you configure without the --prefix option magic gets installed in a directory that is already listed in the path (which is why this works in vks's instruction without changing the path)
g
Successfully installed and got it working, thanks everyone!
🙌 1