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
Roel Jordans
12/10/2024, 11:25 AM
you may want to add the installation directory to your PATH
export PATH=$PATH:/home/user/tools/magic/bin
g
Giuseppe Macera
12/10/2024, 11:26 AM
Thanks Roel. This command needs to be after step 4 of my list above?
v
vks
12/10/2024, 11:54 AM
Following commands does the job of installing magic. Please try these.
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
Roel Jordans
12/10/2024, 12:04 PM
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
Giuseppe Macera
12/10/2024, 3:56 PM
Successfully installed and got it working, thanks everyone!
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.