Thread
:
X Terminal
View Single Post
jabawok
2010-02-13 , 05:02
Posts: 75 | Thanked: 125 times | Joined on Nov 2008
#
2
Hi.. you wont be able to copy to /usr/bin unless the copy command is running with root level privileges. This has been done for a reason, on linux based systems. Every file on the system is tracked by a package manager, making it possible to remove and upgrade packages easily. If you put files into the filesystem that the packagemanager does not know about, you risk breaking the operating system when future package updates are released.
The correct way to install files into /usr/bin would be to package them into a deb file, and install the deb using the package manager. (gainroot, then use "dpkg -i mydebfile.deb")
Alternatively, you can make a bin directory under your home directory and install/run the binary executable there.
cd
mkdir bin
cp mybinary bin
bin/mybinary
that last command will execute the binary. This is a much safer way of playing than writing files into the OS's directories
Hope that helps
Quote & Reply
|
The Following 2 Users Say Thank You to jabawok For This Useful Post:
nikul.padhya
,
Reaper2
jabawok
View Public Profile
Send a private message to jabawok
Find all posts by jabawok