View Full Version : /sw/lib/libcurl.2.dylib to /usr/lib/??? (terminal...???)
BinarySpike
2005.05.01, 10:08 AM
Ok, I'm trying to move a library from a fink folder to an invisible folder.
(because Fink didn't do it for me :mad:)
I've looked in the /usr/lib folder with terminal (cd, ls) and found that the library wasn't there.
I need this to get the BZFlag 2.0.2 to work on Mac os 10.2
Because libcurl doesn't come with 10.2
I did do a compile of BZFlag 2.0.2 from source and it works fine... but you need libcurl to use a special type of banning, and MOTD... Message of the day
I also want to make a file that people execute from terminal that does everything for them;
apt-get install curl
sudo ...Move libcurl.2.dylib to /usr/lib
I don't know what to name it though. (get202.command???)
so how do I create a file that terminal will execute.
so I just create this file and people download fink and BZFlag and my script will do the rest like "apt-get install curl, and the move to /usr/lib" and for rotation on BZFlag games.......
Thanks!
Steven
2005.05.01, 01:18 PM
Last I checked curl was installed by default on Macs (?) At least, I've never had to install it. But if you must distribute it, it would probably make more sense to distribute the binaries since most people won't have Fink installed anyways. To directly answer your question, give the file an extension of .command and ensure that its executable bit is set (chmod a+x filename.command)
Or, you could simply extend your library search path to include /sw/lib along with the rest. I thought that Fink did that for you, though.
BinarySpike
2005.05.01, 03:54 PM
Last I checked curl was installed by default on Macs (?)
Only on Panther.
I've never had to install it. But if you must distribute it, it would probably make more sense to distribute the binaries...
DUH! why didn't I think of that...
(...It could be against curl TOS...)
you could simply extend your library search path to include /sw/lib along with the rest.
First, I don't know how to do that...
Second, I ran BZFlag 2.0.2 by terminal. (because bzflag server (bzfs), and bzadmin must be ran from terminal)
it says it can't find libcurl.2.dylib in /usr/lib/
give the file an extension of .command and ensure that its executable bit is set (chmod a+x filename.command)
Ok, so it is .command.
Ok, so is there anyway to move libcurl2 to /usr/lib/
(like instead of something like mkdir, something like movefile......)
I'm pretty sure the sudo command is a "give priviliges" type command for doing stuff in "system" files...???
lightbringer
2005.05.01, 03:57 PM
Only on Panther.
I'm in Tiger and it works for me. Or are you running <= Jaguar?
BinarySpike
2005.05.01, 04:45 PM
Sorry, I forgot Tiger...
10.3 and up are the only ones that have libcurl pre-installed...
Steven
2005.05.01, 07:27 PM
mv will move or rename files, if that is what you are looking for. And yes, sudo will give you temporary root privileges.
wadesworld
2005.05.01, 08:34 PM
You should not move it to /usr/lib though - you should leave that untouched whenever possible, because it's a "system" directory.
What you should do is create a symbolic link from /usr/lib to /sw/lib
sudo ln -s /sw/lib/libcurl.2.dylib /usr/lib/libcurl.2.dylib
Wade
BinarySpike
2005.05.01, 11:43 PM
Ok, does this "symbolic link" have any effects I should be aware of???
How do I make this "symoblic link" go away.
I'm building a .command file that basicly installs libcurl...
(and I want an un-installer just in case...)
So, one last question:
Does apt-get come with fink? or is that with the system???
Steven
2005.05.01, 11:51 PM
It behaves much as a normal file would. You can remove it much as a normal file, with rm.
Apt-get is the debian installer utility, in this case distributed with Fink. It is in no way part of the base system.
wadesworld
2005.05.01, 11:51 PM
Why not do a google search on "unix symbolic link"?
apt-get is a part of fink.
Wade
BinarySpike
2005.05.02, 01:05 PM
Thank's guys!!!
I accedently "sybolicly linked" libssl with libcurl :wacko:
Now I have to go through and delete them all...
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.