/sw/lib/libcurl.2.dylib to /usr/lib/??? (terminal...???)

Member
Posts: 277
Joined: 2004.10
Post: #1
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!

Global warming is caused by hobos and mooses
Quote this message in a reply
Member
Posts: 370
Joined: 2002.04
Post: #2
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.

Did you ever wonder why we had to run for shelter when the promise of a brave new world unfurled beneath the clear blue sky?
Quote this message in a reply
Member
Posts: 277
Joined: 2004.10
Post: #3
Quote:Last I checked curl was installed by default on Macs (?)
Only on Panther.

Quote: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...)

Quote: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/


Quote: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...???

Global warming is caused by hobos and mooses
Quote this message in a reply
Member
Posts: 144
Joined: 2004.07
Post: #4
BinarySpike Wrote:Only on Panther.

I'm in Tiger and it works for me. Or are you running <= Jaguar?
Quote this message in a reply
Member
Posts: 277
Joined: 2004.10
Post: #5
Sorry, I forgot Tiger...

10.3 and up are the only ones that have libcurl pre-installed...

Global warming is caused by hobos and mooses
Quote this message in a reply
Member
Posts: 370
Joined: 2002.04
Post: #6
mv will move or rename files, if that is what you are looking for. And yes, sudo will give you temporary root privileges.

Did you ever wonder why we had to run for shelter when the promise of a brave new world unfurled beneath the clear blue sky?
Quote this message in a reply
Member
Posts: 116
Joined: 2002.04
Post: #7
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
Quote this message in a reply
Member
Posts: 277
Joined: 2004.10
Post: #8
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???

Global warming is caused by hobos and mooses
Quote this message in a reply
Member
Posts: 370
Joined: 2002.04
Post: #9
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.

Did you ever wonder why we had to run for shelter when the promise of a brave new world unfurled beneath the clear blue sky?
Quote this message in a reply
Member
Posts: 116
Joined: 2002.04
Post: #10
Why not do a google search on "unix symbolic link"?

apt-get is a part of fink.

Wade
Quote this message in a reply
Member
Posts: 277
Joined: 2004.10
Post: #11
Thank's guys!!!

I accedently "sybolicly linked" libssl with libcurl Wacko
Now I have to go through and delete them all...

Global warming is caused by hobos and mooses
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Dylib problem ugriffin 2 4,072 Apr 20, 2011 05:28 PM
Last Post: ugriffin
  Cocoa fundamentals - the message loop in a dylib bumperman 5 5,787 Nov 8, 2009 11:17 AM
Last Post: OneSadCookie
  XCode or Terminal? Eeyore 41 14,275 Jan 2, 2008 01:13 PM
Last Post: wyrmmage
  Help! Build failing on libcurl GolfHacker 7 5,405 Nov 3, 2007 08:03 PM
Last Post: GolfHacker
  how to debug a dylib? sakiel 1 3,988 Aug 16, 2007 07:26 PM
Last Post: OneSadCookie