PDA

View Full Version : *If you want to use Fink with Apple X11*


sao
01-13-2003, 09:18 PM
If you want to use "Fink" to install applications to use with Apple X11, as it is not clearly explained at Apple X11 web page, it's very important you do the following:

1.-Make sure you download and install "BOTH", X11 Public Beta (41.4 MB) and the Mac OS X Public Beta SDK. (3.8MB)

You can find links to download both packages in the same page.

If you can't find the download link for the Mac OS X Public Beta SDK (3.8MB), just look at the bottom of the page and you will see in the right corner a box titled "Developer's Kit"

Do not download the "common toolkits" from OpenDarwin, they will likely interact poorly with Fink's installation.


Apple X11 for MacOS X:

http://www.apple.com/macosx/x11/

Cheers...

BenK1342
01-14-2003, 03:22 AM
By "Common Toolkits" do you mean gtk, gtk2, qt3, etc? I am relatively new to the X11 scene, and when I downloaded GIMP it told said I need gtk. I got GIMP from the open darwin site at http://www.opendarwin.org/projects/darwinports/en/x11.php because I wasn't sure what would happen if I used fink after installing Apple's X11. Do I need to get rid of gtk to install the fink packages? If so, how do I do that?

Thanks a lot.

sao
01-14-2003, 09:09 AM
BenK1342 wrote:
By "Common Toolkits" do you mean gtk, gtk2, qt3, etc?
Yes, that what's recommended at the Fink web site. Check here:

3.2 Apple's Binaries:
http://fink.sourceforge.net/doc/x11/inst-xfree86.php#apple-binary

DarwinPorts installs, by default, in /opt/local, probably for the same reasons why fink is installed in /sw and thus should be able to coexist peacefully with fink, with some exceptions.

So, though DarwinPorts installs in /opt/local by default, the "X11 Packages for Mac OS X" have been built to install in /usr/local.

You just have to be careful what software you install with which distribution. The only software I install with DarwinPorts is the one that does not affect the proper use of Fink or is not available with Fink.


Cheers...

tamenti
01-15-2003, 04:23 PM
I installed the gtk and gtk2 libarries and Apples X11 and GIMP. Now I want to install Fink, but it says that there is already a copy of Fink on my system. Im sure I havent tried to install Fink on this system before.
What can I do?

Phil St. Romain
01-16-2003, 11:01 AM
I don't know the answer to your question, tamenti, but I have a new issue to raise.

My first X11 installation was made over an existing set-up where Xfree86 had been installed by Fink. I had no trouble downloading software with Fink on this set-up.

Yesterday, I installed Apple's Developer Tool, X11 and X11 SDK on a different partition, then installed Fink and Fink Commander. I've been unable to install new programs with Fink on this new set-up; most error messages have something to do with Xfee86 not being present.

Is Apple's X11 installation of Xfree86 somehow different from what Fink installs? What could be accounting for this problem in one set-up, but not in another? Both partitions are identical in all other respects.

Glanz
01-16-2003, 11:21 AM
....make sure you have system-xfree86 version 4.2-5 installed.

Phil St. Romain
01-16-2003, 11:52 AM
Glanz, I thought it was 4.2.1, and I thought X11 did that with the installation. Software like OpenOffice ran OK, it's just that Fink couldn't work properly.

I've since cloned my working set-up onto the one that wasn't working and now Fink is happy.

But what went wrong there? Has anyone else tried using Fink after installing X11?

Glanz
01-16-2003, 11:58 AM
Originally posted by Phil St. Romain
Glanz, I thought it was 4.2.1,
That is the xfree86 version. I'm pappin' 'bout the SYSTEM_XFREE86 version. Fink needs this to "connect" to XFree's that are non-fink installed. Just do a "fink install system-xfree86" if you do not have it.

sao
01-16-2003, 12:03 PM
Phil,

Glanz is right... :)

It's in our Apple X11 FAQs:

you need: the 'system-xfree86' package, version 4.2-3 or higher...

<<<
If you have already XFree86 installed with Fink and want to install Apple X11

First make sure that you remove your existing Fink xfree86 packages, use dpkg with the --force-depends option from the Command-Line, like so:

sudo dpkg -r --force-depends xfree86-rootless xfree86-rootless-shlibs xfree86-base xfree86-base-shlibs

Then install Apple's X11 and X11 SDK, and then run:

For binaries:
'sudo apt-get update'
'sudo apt-get install system-xfree86' (for binaries)

or

To get the latest system-xfree86 package from CVS:
'fink selfupdate-cvs'
'fink install system-xfree86'

>>>



Cheers...

sao
01-16-2003, 12:07 PM
tamenti wrote:
but it says that there is already a copy of Fink on my system.
Well, let's check it out. What says:

'fink -V'

and

% which fink
/sw/bin/fink

Or, you have a /sw folder at root level?


Cheers...

sao
01-16-2003, 12:14 PM
Phil wrote:
Has anyone else tried using Fink after installing X11?
It should work without problem. That is, if you followed correctly the installation procedures I posted above.

If you still have problems, let me know, and I will guide you.


Cheers...

Phil St. Romain
01-16-2003, 12:21 PM
OK, Glanz and sao. I'm learning! :)

But what I did was install X11 and SDK downloaded from Apple's site. Fink would find errors when installing applications, all of which had something to do with Xfree86. The recommendation was to install Xfree86 using Fink, but I thought X11 had done that.

As noted above, I just finally cloned my working set-up, and all is well. But I still don't really understand why things didn't work. No way to troubleshoot that now as the non-working set-up is gone.

sao
01-16-2003, 12:48 PM
Phil wrote:
But what I did was install X11 and SDK downloaded from Apple's site. Fink would find errors when installing applications, all of which had something to do with Xfree86. The recommendation was to install Xfree86 using Fink, but I thought X11 had done that.
The recommendation probably said to install Fink 'system-xfree86'. Which is different than XFree86 which you correctly point was installed by X11.


Many people get confused between Fink's:

'xfree86-base' and 'xfree86-rootless' packages (to install XFree86)

and the

'system-xfree86' package

which is just a place-holder package (actually empty)

for an "outside Fink" installed Xfree86, in this case Apple's X11, which installs it's own version of XFree86.

So if you want to work with Fink and you install Apple X11 you need Fink system-xfree86 place-holder package version 4.2-3 or higher.

Phil wrote:
No way to troubleshoot that now as the non-working set-up is gone

If you want to double check, just run from terminal.app:

fink list xfree86

and show me the result.


Cheers...

mervTormel
01-16-2003, 01:05 PM
this issue should get pretty good treatment in the faq, if it hasn't gotten it already, there... um, you know what i mean.

sao
01-16-2003, 01:24 PM
MervTormel,

You are right, will include it in the FAQs.

Cheers...

Phil St. Romain
01-16-2003, 02:45 PM
If you want to double check, just run from terminal.app:

fink list xfree86

and show me the result.

Command not found

sao
01-16-2003, 02:56 PM
Phil,

Did you wrote in your ~/.cshrc or ~/.tcshrc file:

source /sw/bin/init.csh


Cheers...

mervTormel
01-16-2003, 02:56 PM
$ fink list xfree86

Information about 2064 packages read in 1 seconds.

system-xfree86 4.2-5 Placeholder package for manually installed XFree86
xfree86-base 4.2.1.1-4 XFree86 libraries, utilities, clients and data
xfree86-base-shlibs 4.2.1.1-4 XFree86 libraries, utilities, clients and data
xfree86-base-threaded 4.2.1.1-3 XFree86 libraries, utilities, clients and data
xfree86-base-threaded-shlibs 4.2.1.1-3 XFree86 libraries, utilities, clients and data
xfree86-rootless 4.2.1.1-4 XFree86 libraries, utilities, clients and data
xfree86-rootless-shlibs 4.2.1.1-4 XFree86 libraries, utilities, clients and data
xfree86-rootless-threaded 4.2.1.1-3 XFree86 libraries, utilities, clients and data
xfree86-rootless-threaded-shlibs 4.2.1.1-3 XFree86 libraries, utilities, clients and data


phil, command not found? means fink not found? means /sw/bin isn't in your path any longer? what have you been doing?

Phil St. Romain
01-16-2003, 03:08 PM
LOL! What am I doing? Hmm.

You do know that I'm a complete moron when it comes to CLI, I hope.

Nevertheless . . .

system-xfree86 4.2-1 Placeholder package for manually installe...
i xfree86-base 4.2.1.1-3 XFree86 libraries, utilities, clients and...
i xfree86-base-sh 4.2.1.1-3 XFree86 libraries, utilities, clients and...
i xfree86-rootles 4.2.1.1-3 XFree86 libraries, utilities, clients and...
i xfree86-rootles 4.2.1.1-3 XFree86 libraries, utilities, clients and...

-------------

You know, gents, this is still just a tad complicated for even Mac veterans who don't know CLI.

Like . . . here's another one: in our FAQ, you're supposed to just be able to type AbiWord in xterm and thatl'll launch it. Nope. I get a Command not found message. When I type the absolute pathway it launches.

mervTormel
01-16-2003, 03:16 PM
commands that start with capitals are case sensitive

$ apple[tab]
appleping appletalk appletviewer

$ Apple[tab]
AppleFileServer AppleSystemProfiler*

sao
01-16-2003, 03:27 PM
Phil,

It's not so easy to remember everything...

Well, please run exactly the following in terminal.app:

sudo dpkg -r --force-depends xfree86-rootless xfree86-rootless-shlibs xfree86-base xfree86-base-shlibs

Then install BOTH 'Apple's X11' and 'X11 SDK' again

and then:

A- if you have December 2002 Apple Developer Tools installed run:

'fink selfupdate-cvs' (You will have to wait for this one, because server is down for a few days)

'fink install system-xfree86'

OR:

B-If you don't have the Dev Tools installed continue and run:

'sudo apt-get update'

'fink index'

'sudo apt-get install system-xfree86'


Let me know.

sao
01-16-2003, 03:34 PM
Phil,

Take your time, will come back tomorrow, it's time for me to go to sleep.

Phil St. Romain
01-16-2003, 04:04 PM
You've gone waaayy beyond the call of duty, sao, and merv as well.

Thanks. I'll do what you've said and report back. Sleep well.