Previous 1 3 4 5 6 7 Next 123 Replies Latest reply: Mar 14, 2008 5:56 PM by LuisFL29 Go to original post
  • Michael Thorn Level 1 Level 1 (10 points)
    Abhi111 wrote:
    This seems completely broken. X11.app doesn't launch and GIMP, Gretl and Inkscape have stopped working. A faulty "upgrade" like this creates real hassles for many people.


    Not in the least bit completely broken! I have Inkscape working perfectly with less than a 1 minute hack (BTW, the hack made it more like the linux version of inkscape by removing added code that was required for Tiger's version of X). Gimp is still broken, but it is in the works. Definitely has its bugs, but a huge improvement imho. There is no reason for X11.app not to work on a clean install. If your X11.app doesn't launch most likely something happened in your install (I have heard this may occur if you upgrade and don't remove all the 'hacks' you may have added). Most often the problem is you have set the $DISPLAY variable somewhere (there was even one user that had it set in two locations... lots of confusion ensued). After removing these hacks it is likely X11.app will work fine. I did an upgrade to start, and while x11.app worked fine, many others didn't. I tried a new install and most apps worked except for a few that need gtk+ and pango.

    There are some issues with GTK+ and others that have not been worked out completely, but are being worked on. Many of these programs, like GIMP and Inkscape have internal settings with the assumption you are running Tiger. Some are easy to fix, but most are hidden away.

    I am sure the Inkscape team and perhaps the Gimp team will release a new version very soon.
  • tmo256 Level 1 Level 1 (10 points)
    I have a couple of different factors that may be an issue for some others. I actually am not running Leopard, but on Friday I installed the 10.4.10 upgrade for both my iMac and my MacBook (both Intel). (Looking at the Apple download pages, I see that the MacBook update is different from the one for my iMac.)

    I'm now experiencing the main issues noted on this page on my MacBook: I cannot open Inkscape, which gives the "X11 must be installed" error. I installed the very latest version of Inkscape (several times), deleted my .xinitrc file (even though it had nothing in it), edited the /Applications/Utilities/X11.app/Contents/Resources/script file, all to no avail.

    Interestingly, nothing of this sort happened on my iMac. I'm still able to use both GIMP and Inkscape, with no problems.

    I noticed that Abhi111 is also a MacBook user, and I wonder if that might not be why he is having problems that others aren't.
  • Abhi111 Level 1 Level 1 (5 points)
    Thanks for your reply Michael. I am not a UNIX expert and the only solution I discovered was Ben Byer's fix given at: http://www.x.org/wiki/XDarwin relating to Xquartz. Fixing this is easier for many people who are Unix aware - but not all of us can implement the necessary hacks. Everything still works fine with Tiger X11.

    I simply upgraded Tiger to Lepoard - everything else works fine (R/ TexShop/ Stata etc), but all X11 apps seem to be asking for X11 on launch, when it is already installed (i.e. the Leopard version). Two items of software: Gretl and Rcmdr in R fail to launch. Double clicking on X11.app doesn't launch it and \usr\X11\X11.app gives an icon in the dock which rapidly disappears. Any ideas?
  • Michael Thorn Level 1 Level 1 (10 points)
    Ben has done A LOT in the last week for sure. He has fixed many problems, and a few others have been fixed by others much more knowledgeable than I. In the coming weeks I am sure he will figure out most of the remaining problems especially with all of us alpha testers whining about each and every little bug we find. When a reliable fix becomes available I will report back and let you all know.

    Upgrading to Leopard when you used ANY X11 apps in Tiger seems to be the issue. Had you done a clean install, most of your problems would be eliminated most likely. I can understand reluctance to do this as it requires an external drive and a lot of time. The problem is many of the X11 apps that are installed run scripts to change settings during the installation process that while worked in Tiger were really 'hacks' in the sense that they aren't really necessary on a traditional linux/unix box. It is these scripts and the changes that they made that are most likely causing your problems.

    I think if I had it my way I would have had Leopard take the previous X11R6 and archive it along with any hidden files in the home directory (such as .profile, .bashrc, .bash_profile). I think this would have saved a lot of headaches, but in true apple fashion they were trying to make it so you didn't loose any of your personal settings during the upgrade. Ah well.

    So to your problem Abhi111, if you did an upgrade you most likely have an evil setting screwing something up. I will try and help you but understand I am very new at this as well, and if I say something stupid others should speak up and correct me. Here we go.... Open up Terminal.app in /Applications/Utilities/ and type the following:

    echo $DISPLAY

    at the prompt and hit enter. It should be something like: /tmp/local-asdf1234/:0. If it isn't that is most likely the problem. That is the first step, as my memory serves, this caused 90% of the known problems with X11.app not starting up properly. There are other issues, but this is the first one to diagnose.

    Next, if the previous step checked out properly, in the Terminal window type:

    cd ~
    ls -al

    Do you have a file called .xinitrc? If so type:
    nano .xinitrc
    and it should open in the nano editor (nano could be exchanged for vi, emacs, pico, ... but nano is a pretty easy one to use for a beginner, the '^' is your ctrl key.) . This file will get executed as soon as X11 starts up, and will quit unless there is a command that it leaves it open. The last command should be something like: "exec quartz-wm" or something. If you don't have this file that is okay, and not the problem. If the command is missing from the file put it in without the quotes and see what happens if you try to open /Applications/Utilities/X11.app

    Alternatively you could just move the file to a different name so it isn't executed to see if X11 starts up normally. Type this command to do this:

    mv .xinitrc .xinitrc_old

    Let's start with this much and see where we get. As far as Ben's alphas, your problem is different. First let's fix that and then if you still have issues we can work thru putting in the newest alpha to see if that helps.
  • Abhi111 Level 1 Level 1 (5 points)
    Many thanks, Michael for your detailed post - you are in fact completely right. It was Tiger X11 and Leopard X11 which had some sort of conflict and that made X11 unworkable. I did the following and it all works now. Thanks again for taking the time to write this!

    What I did to fix this: I called Apple Support UK and basically went through a number of diagnostics. My attempts to fix X11 using Ben Byer's solution based on fixing Xquartz did not solve the X11 problem and my attempts to reinstall X11 from Tiger installed disks proved unsatisfactory as well. For a Unix newbie like me, Unix trickery proved unhelpful.

    On the advice of Apple Care staff I carried out an archive and install, preserving all user settings, files and options. I was a bit hesitant - but I did not lose any files afterwards, Parallels and R still work and everything seems to be in the right place. This basically rebuilt X11 and removed conflicts between the old X11 and the new. After this, ALL X11 apps now work - including MATLAB, Gretl, GIMP and Inkscape. Problem solved. Thanks to Apple Support UK.
  • Pashadawg Level 1 Level 1 (0 points)
    Hmmm. I did a clean install of Leopard. I still have my Tiger disk. Are you better able to describe your fix? I hope I don't need to install the OX another time.
  • qniverse Level 1 Level 1 (0 points)
    Hi everyone. I was having the problem of opening up Gimp and Inkscape as well. After trying some of the suggestions here, nothing worked and I thought I would just wait for updates.

    Anyhow, some of Michael's latest posts about the settings being screwy. So I used AppDelete to delete X11 and then I used Leopard DVD optional installs to reinstall X11. Now Gimp works, but Inkscape does not...it says that X11 is not installed?

    when I type echo $DISPLAY i get this /tmp/launch-ghYpkN/:0 ...so I have no clue what to do.

    I also want to mention, that I did an archive and install.

    Message was edited by: qniverse
  • Daniel I. Level 1 Level 1 (0 points)
    Thanks for your answers. I am a relative novice at unix, but I got to the terminal, typed in "echo $DISPLAY" to which I received the response "/tmp/launch-ksucTH/:0" and my question is: what specifically do I do next?

    Of note, when typing in the "cd ~" then "ls -al" I note that I have two files that are close to the one you describe, named ".xinitrc.old" and ".xinitrc.old.1", so my question is, what then?

    As to the person who did a complete archive and install with great success (about two posts down), how what that done, specifically, with detailed steps that can be followed relatively straightforwardly?

    Also: I do happen to have an external drive and a lot of time. How, specifically, could I perform the clean install that Michael Thorn mentions without losing files?

    Thanks very much for any help you can offer.
  • Michael Thorn Level 1 Level 1 (10 points)
    FIRST:
    These instructions can cause data loss. I take no responsibility for you following them or their accuracy. If something horrible happens all I can say is that really stinks, better luck next time. If you have anything that is REALLY important, it should be backed up multiple times. Save them to CDRs, DVD-Rs, external drives, USB flash drives, all of these, whatever it takes to be sure. Don't take this lightly. A wrong move can erase a lot of stuff quickly.

    Daniel I. wrote:
    --snip-- I got to the terminal, typed in "echo $DISPLAY" to which I received the response "/tmp/launch-ksucTH/:0" and my question is: what specifically do I do next?


    Well this is good news, it means you are not setting the $DISPLAY environment variable by default. In Tiger this would have broken X11, but in Leopard it automatically sets the display variable, so trying to set it to something by default doesn't work. In short DO NOTHING. This is exactly what you want to see when you type "echo $DISPLAY".


    Of note, when typing in the "cd ~" then "ls -al" I note that I have two files that are close to the one you describe, named ".xinitrc.old" and ".xinitrc.old.1", so my question is, what then?


    Well now that is interesting. It seems as though you had some program that created a .xinitrc, but it appears that Leopard may have renamed it so they don't get called. It seems Leopard was trying to protect you like I said it should. I suppose .xinitrc could have been put into another folder somewhere. If I was sitting there maybe we could find it, but I bet it is what is causing trouble, or something similar. Since there seems to be more interest in doing reinstalls let's just do that.

    Let's just go the easy, albeit, LONG way around to getting this fixed. If others are having trouble and don't want to do the following we can go into it in a future post--let me know.

    As to the person who did a complete archive and install with great success (about two posts down), how what that done, specifically, with detailed steps that can be followed relatively straightforwardly?

    Also: I do happen to have an external drive and a lot of time. How, specifically, could I perform the clean install that Michael Thorn mentions without losing files?


    The *archive and install* method is the least painful way to do things, and will most likely work fine. To do this follow these instructions:

    http://docs.info.apple.com/article.html?artnum=107120

    These are pretty long, but really it is pretty easy, just put the install DVD in, after agreeing to license and choosing the volume to install to, there will be a button labelled 'options'. Click this button and choose 'archive and install'. You will be presented with choices on what to preserve, you could preserve it all to start with, see if it works, and if not do another archive and install without preserving settings. Basically preserving these settings just makes it so your desktop picture is still there, your internet settings are still there, your dock is in the same place, etc. Each time you run this process you will get a new archive and they will be labelled /Previous Systems/Previous System 1/ or 2 or 3 or whichever archive install you are on. To get the stuff in the archive look at these instructions:

    http://docs.info.apple.com/article.html?artnum=107297

    Most of your stuff will be in /Users/yourusername. You will have to reinstall extra software again. I would start with the X11 programs you want to run first to see if it worked so you don't lose too much time if it didn't.

    -------

    If you want to do a *clean install*, the first thing you want to do is save your previous data. Here lies an issue. *+_TAKE NOTE!!!_+* There seems to be a bug in Leopard, a real one.
    http://www.macintouch.com/leopard/movebug.html
    It has been filed but you need to be careful. When copying a file to an external drive, if the copy doesn't work (lost connection for example), leopard 'may' erase the original copy. I had no problems, but I didn't know this happened until I already did it. I would be much more careful now. Anyway, to do this the steps are pretty nasty as far as preserving things like emails and bookmarks, and such....

    1) Save all of you documents/pictures/music/movies/downloads/sites to the external drive. If you are on Tiger, just drag and drop to your external drive. If you are on leopard, because of the bug, you MUST, repeat MUST, HOLD DOWN THE APPLE KEY while dragging from one place to the next. This will force Leopard to use the "mv" command rather than the "cp" command. It will move the files to the external drive.

    2) Now there are other settings and documents (most notably all your mail, and mail downloads) in /Users/yourname/Library. If you have the room, just take the whole folder. I might duplicate and then move, as the computer may not let you move these files. Just select the folder Library, and choose File>Duplicate, or apple-D. It will create a new folder called Library copy and you can move this folder. That gets all your mail, your mail downloads, your bookmarks, you preferences, and so on.

    your mail is in /Users/yourname/Library/Mail
    your mail downloads in /Users/yourname/Library/Mail Downloads
    your safari bookmarks in /Users/yourname/Library/Safari

    and so on.

    3) When you are confident you have everything you want, you can do an install, but this time when you get to the point when you can click the 'options' button, choose 'erase and install' for a brand spanking new OS. Keep in mind, there is no return from this step. You will lose everything on the drive that is not backed up.

    4) When the install is complete, set up your new computer. I would start by coping my mail and bookmarks back to the appropriate location from the external drive. Then start these applications. You should see your mail and bookmarks come right up, although there may be some reindexing. It shouldn't be too bad though. Then go right for the X11.app. It should work absolutely fine at this point.

    If you have trouble with these instructions, tell me what is confusing and I will try to help.

    -mike
  • Abhi111 Level 1 Level 1 (5 points)
    As before, thanks Michael for a very comprehensive answer. What I did was the following. Basically, I first backed up all (important) folders to my LaCie external drive (particularly my home folder). On one partition I already have a bootable clone of my Tiger install and all files which I had made prior to upgrading to Leopard (using Bombich Carbon Copy Cloner).

    Then I inserted the Leopard install disk and pressed C to boot from disk. I then chose the option: Archive and Install (preserving all user settings). It took about an hour to do so, and then my machine rebooted. My old system folder was moved and named as Previous System. I checked to make sure everything was working (Parallels/ Crossover/ R/ TexShop/ Stata/ MacOffice etc. The next day I trashed the previous system folder. Since then, X11 has been working without a hitch.
  • Pashadawg Level 1 Level 1 (0 points)
    Thank you very much for the detailed instructions!

    I did a clean install, but GIMP is still not working. Am I missing something?
  • ElPapa Level 1 Level 1 (0 points)
    Mac-oholic,

    Where did you find a Leopard-compatible version of GIMP? I still haven't found one.
  • Michael Thorn Level 1 Level 1 (10 points)
    Pashadawg wrote:
    Thank you very much for the detailed instructions!

    I did a clean install, but GIMP is still not working. Am I missing something?



    No you aren't missing anything. We have gone slightly away from trying to get gimp to work as some could not get x11.app to work (a bigger problem because than none of the x apps would work). The truth is we have not figured out how to make gimp work, as far as I know. I can get gimp to launch, but when I open a canvas and try to paint a stroke, gimp crashes. Some are working on it, but it is not solved. Many other x11 apps are working though. Hopefully this will get fixed soon.
  • ElPapa Level 1 Level 1 (0 points)
    thepotter wrote:
    ... problem is, once launched, it's impossible to quit, it just keeps relaunching itself.


    That's because this patch is grossly out of date and for the Tiger-based version of X11.
  • Mac-oholic Level 1 Level 1 (5 points)
    ElPapa wrote:
    Mac-oholic,

    Where did you find a Leopard-compatible version of GIMP? I still haven't found one.


    All I found was the newer version that actually opened in Leopard. It crashes when you use the paint brush. You can still do basic cropping, resizing, rotating, flipping, and (I think) some of the filters and color altering tools. Right now people are trying to get it to work right.

    If you haven't found the newer version then go here:

    http://www.gimp.org/macintosh/

    Then click on the 'Gimp.app' link in the middle of the page. It will take you here:

    http://gimp-app.sourceforge.net/

    The "GIMP-2.4-rc3-intel.dmg" (Intel only) is the version that at least opens.
Previous 1 3 4 5 6 7 Next