Enabled root user briefly and now applications won't work

Discussion in 'Mac Basics and Help' started by caoimhinoc, Jan 20, 2014.

  1. caoimhinoc, Jan 20, 2014
    Last edited: Jan 20, 2014

    caoimhinoc macrumors newbie

    Joined:
    Jan 20, 2014
    #1
    I have a Macbook Pro running Mountain Lion. I was playing around trying to get a few old printers to work so I tried to install CUPS. I enabled the root user, logged in, ran the >make install< command, looked up a guide in chrome, logged out, disabled the root user. That's it. Now several applications, including Chrome, Skype, Pages don't work anymore.

    I've tried the standard log out log in, restart, reinstall Chrome, but I keep getting the same error message:

    "Google Chrome cannot be opened because of a problem."

    CUPS could be to blame too. (I'm not sure if it even works.) How do I proceed?
     
  2. Dark Dragoon macrumors 6502a

    Dark Dragoon

    Joined:
    Jul 28, 2006
    Location:
    UK
    #2
    What exactly did you try and install?
    Also what instructions did you follow?

    Mountain Lion comes with CUPS which OSX uses for printing.
    You can run "sudo cupsctl WebInterface=yes" then access the web interface from "http://localhost:631" if needed.

    If you open up the Console.app (in the Applications/Utilities) folder, look at All Messages. Then try running one of the programs which has broken, does it give any more information as to the problem?
     
  3. caoimhinoc, Jan 20, 2014
    Last edited: Jan 20, 2014

    caoimhinoc thread starter macrumors newbie

    Joined:
    Jan 20, 2014
    #3
    Ugh I had no idea 10.8 came with CUPS. Somehow I missed that. I was trying to get my old printers to work with my new MacBook (October 2013) and was looking for drivers and I saw that this thing called CUPS had them, so I tried to install it.

    It's CUPSv1.7.0 downloaded from cups.org and I followed the instructions that came with the bundle (install.txt; like here) That is:

    ./configure;
    make;
    make check;
    make install;

    Anyway, now it seems I have two versions. (Or will the new one have replaced the old one? Sorry, I'm a bit of a newb.) The interface at least seems to work, but since I can only add printers in root user I'll have to clear up this issue first I think.

    When I start Chrome, the Console gives me this:

    20/01/2014 21:14:35.832 com.apple.launchd.peruser.502[161]: ([0x0-0xf90f9].com.google.Chrome[2238]) Job appears to have crashed: Trace/BPT trap: 5

    Skype:

    20/01/2014 21:20:37.602 com.apple.launchd.peruser.502[161]: ([0x0-0xfc0fc].com.skype.skype[2298]) Job appears to have crashed: Bus error: 10

    Gimp, iPhoto, Plot, and others give essentially the same message. (iTunes, Firefox, and Safari are fine.)

    Apart from that, since I enabled/disabled the root user I only got lots of these:

    20/01/2014 17:07:02.070 ReportCrash[975]: Removing excessive log: file://localhost/Users/oldmac/Library/Logs/DiagnosticReports/com.apple.qtkitserver_2014-01-20-170337_Kevin-Kellys-MacBook.crash

    Don't know what they are. Any idea what would be worthwhile trying?
     
  4. LPZ, Jan 20, 2014
    Last edited: Jan 20, 2014

    LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #4
    Well, the install.txt says

    What CUPS version is displayed when you visit http://localhost:631 ? If it's 1.7, I assume you replaced the Apple-supplied CUPS with the one you installed. Don't know if this is causing the problems you've reported.
     
  5. caoimhinoc thread starter macrumors newbie

    Joined:
    Jan 20, 2014
    #5
    Yep, cups-related files in /etc, /usr/, and /var have been modified, and http://localhost:631 says I have v1.7.0, the one I installed.

    That in itself shouldn't have caused problems though...
     
  6. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #6
    Can you find and post a crash report for Chrome (or any of the apps that now crashes)? Maybe look in /Users/oldmac/Library/Logs/DiagnosticReports/
     
  7. caoimhinoc, Jan 20, 2014
    Last edited: Jan 20, 2014

    caoimhinoc thread starter macrumors newbie

    Joined:
    Jan 20, 2014
    #7
    Ok here is a chrome crash report:

    PHP:
    Process:         Google Chrome [13445]
    Path:            /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    Identifier
    :      com.google.Chrome
    Version
    :         32.0.1700.77 (1700.77)
    Code Type:       X86 (Native)
    Parent Process:  launchd [154]
    User ID:         502

    Date
    /Time:       2014-01-20 16:31:54.222 +0100
    OS Version
    :      Mac OS X 10.8.5 (12F45)
    Report Version:  10

    Crashed Thread
    :  0

    Exception Type
    :  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes0x00000000000000020x0000000000000000

    Application Specific Information
    :
    dyldlaunchloading dependent libraries

    Dyld Error Message
    :
      
    Library not loaded: /usr/lib/libcups.2.dylib
      Referenced from
    : /Applications/Google Chrome.app/Contents/Versions/32.0.1700.77/Google Chrome Framework.framework/Google Chrome Framework
      Reason
    no suitable image found.  Did find:
        /
    usr/lib/libcups.2.dylibmach-obut wrong architecture
        
    /usr/lib/libcups.2.dylibmach-obut wrong architecture

    Binary Images
    :
       
    0x7c000 -    0x7cff3 +com.google.Chrome (32.0.1700.77 1700.77) <B093EB25-8A8F-39B9-A82C-5B2B6EAA105A> /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
       0x81000 
    -  0x483cf27 +com.google.Chrome.framework (32.0.1700.77 1700.77) <6D04D3A0-C9ED-3947-8229-D0A6A5C46DFB> /Applications/Google Chrome.app/Contents/Versions/32.0.1700.77/Google Chrome Framework.framework/Google Chrome Framework
     0x4b98000 
    -  0x4be0ffb  com.apple.audio.midi.CoreMIDI (1.9 78) <7AAE4076-36FA-37C1-9EAE-344F1C8F14D9> /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI
    0x8fe7b000 
    0x8feade57  dyld (210.2.3) <4D38DEED-9837-3202-B8E9-41272D01EA2C> /usr/lib/dyld
    0x905f0000 
    0x90768ff5  com.apple.QuartzCore (1.8 304.3) <F2EFC117-CDC6-3252-A4A8-880965764385> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x9275c000 
    0x927c4ff7  com.apple.framework.IOKit (2.0.1 755.42.1) <230C6EEC-A926-3720-82DB-25D0FAAEF962> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x93265000 
    0x932c9ff3  libstdc++.6.dylib (56) <F8FA490A-8F3C-3645-ABF5-78926CE9C62C> /usr/lib/libstdc++.6.dylib
    0x93321000 
    0x93321fff  com.apple.ApplicationServices (45 45) <677C4ACC-9D12-366F-8A87-B898AC806DD9> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
    0x937b3000 
    0x93814ff7  com.apple.audio.CoreAudio (4.1.2 4.1.2) <C1D471E9-B4D6-3A59-975C-B3B3A25E6058> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x9489d000 
    0x94a85ffb  com.apple.CoreFoundation (6.8 744.19) <DDD3AA21-5B5F-3D8F-B137-AD95FCA89064> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x94b33000 
    0x94b81ff3  com.apple.SystemConfiguration (1.12.2 1.12.2) <15B4EFFC-22D1-3517-BE8C-7947DAA24729> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x952d1000 
    0x952d1ffd  com.apple.audio.units.AudioUnit (1.9.2 1.9.2) <CFAAB1B1-DBC7-3FF1-97BA-065C6620360D> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x953e4000 
    0x95401ff7  libresolv.9.dylib (51) <B9742A2A-DF15-3F6E-8FCE-778A58214B3A> /usr/lib/libresolv.9.dylib
    0x9553e000 
    0x95697ffb  com.apple.audio.toolbox.AudioToolbox (1.9.2 1.9.2) <461C4CCD-5F52-3D2F-AE22-D0CA7EF3F01A> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x95698000 
    0x95698fff  libSystem.B.dylib (169.3) <0A82D354-A1B4-3F3E-8C7E-5047C38D4668> /usr/lib/libSystem.B.dylib
    0x95a4e000 
    0x95babffb  com.apple.QTKit (7.7.1 2599.41) <9514F791-9ED4-3C00-84F7-D87B5FB254FF> /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit
    0x95cf8000 
    0x968b4ff3  com.apple.AppKit (6.8 1187.40) <94E92235-7AD9-37EF-9B7C-B79074762370> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x9720d000 
    0x9720dfff  com.apple.Accelerate (1.8 Accelerate 1.8) <D4F5AB2C-0727-39FD-8EE9-E4DD3D78EB2E> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x978f4000 
    0x97902fff  com.apple.opengl (1.8.10 1.8.10) <385E048A-FFB2-348A-8F80-572C2494A776> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x98797000 
    0x98797fff  com.apple.CoreServices (57 57) <956C6C6D-A5DD-314F-9C57-4A61D41F30CE> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x98ab8000 
    0x98dd8ff3  com.apple.Foundation (6.8 945.18) <BDC56A93-45C5-3459-B307-65A1CCE702C5> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x98e2c000 
    0x98e2cfff  com.apple.Carbon (154 155) <17F1B675-E054-3D2C-900B-C9CE69F1FC31> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x99b14000 
    0x99dd4ff3  com.apple.security (7.0 55179.13) <000FD8E9-D070-326A-B386-51314360FD5C> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x99ef5000 
    0x99f1aff7  com.apple.CoreVideo (1.8 99.4) <A26DE896-32E0-3D5E-BA89-02AD23FA96B3> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    You could be on to something here. There is something about cups in there:

    PHP:
    Reasonno suitable image found.  Did find:
        /
    usr/lib/libcups.2.dylibmach-obut wrong architecture
    What now though? Why would all these applications even need to refer to cups?
     
  8. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #8
    That's your problem. What do you get when you enter the following in Terminal:

    Code:
    file /usr/lib/libcups.2.dylib
    I'm running 10.7, but what I get is

    Code:
    /usr/lib/libcups.2.dylib: Mach-O universal binary with 2 architectures:
    [x86_64: Mach-O 64-bit x86_64 dynamically linked shared library] [i386]
    
    I suspect your libcups is x86_64 only, so it can't be used with any 32-bit app like Chrome.
     
  9. caoimhinoc thread starter macrumors newbie

    Joined:
    Jan 20, 2014
    #9
    I get:

    Code:
    /usr/lib/libcups.2.dylib: Mach-O 64-bit dynamically linked shared library x86_64
    I skipped this final step in install.txt because I didn't know what it meant: CREATING BINARY DISTRIBUTIONS WITH EPM. Is that something or is it unrelated?

    If not, how do I get cups to support 32-bit applications?

    Thanks for you help so far! It's comforting to know that my computer woes are not caused by dark magic.
     
  10. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #10
    OK, the problem is that the new CUPS you built and installed is 64-bit only. The one you replaced was universal, i.e., 32-bit and 64-bit together.

    The EPM seems unrelated.

    You might try re-doing your building and installing of CUPS 1.7, with a minor variation. For simplicity, delete the cups folder you downloaded before, and start with a fresh one. Then, instead of

    Code:
    ./configure
    try

    Code:
    ./configure CFLAGS="-arch i386 -arch x86_64" CXXFLAGS="-arch i386 -arch x86_64" LDFLAGS="-arch i386 -arch x86_64"
    followed by make, then make check and then

    Code:
    sudo make install
    (You'll be asked for your password, but by using sudo you don't need to enable and become root.)

    If these steps all succeed, you should have a universal CUPS system and 32-bit apps like Chrome should be happy again.
     
  11. caoimhinoc thread starter macrumors newbie

    Joined:
    Jan 20, 2014
    #11
    Right, so I did that, but make check gives me this:

    Code:
    ld: symbol(s) not found for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[1]: *** [ippfind] Error 1
    make: *** [all] Error 1
    I'm guessing that's bad, although I'm not sure what it means.
     
  12. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #12
    Make check gave this, not make?

    Yes, bad. It means that some library that needs to be linked into the CUPS binary is only available in 64-bit. So you were able to build 1.7 as a 64-bit binary (as you did originally) but you cannot currently build it as a 32-bit (or as a universal binary).

    Can you post more of the output leading up to the error? Would be worth knowing what symbol(s) were unavailable.
     
  13. BrianBaughn macrumors 601

    BrianBaughn

    Joined:
    Feb 13, 2011
    Location:
    Baltimore, Maryland
    #13
    The OP will probably be better off, headache and time-wise, with a re-installation of the system.
     
  14. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #14
    Yes, that was going to be the gist of my next message.:) Have been searching for a way to simply reinstall the CUPS package that he clobbered, but fifteen minutes of looking hasn't yielded any results. So your suggestion may be the way to go.

    Of course, if the OP has a clone or Time Machine backup, perhaps he can restore the system to the state it was in before he damaged it.
     
  15. caoimhinoc thread starter macrumors newbie

    Joined:
    Jan 20, 2014
    #15
    Oh you're right, 'make' actually gave the same output. Here is all of it:

    Code:
    ld: warning: ignoring file ../cups/libcups.dylib, file was built for x86_64 which is not the architecture being linked (i386): ../cups/libcups.dylib
    Undefined symbols for architecture i386:
      "__cupsLangPrintf", referenced from:
          _main in ippfind.o
          _new_expr in ippfind.o
          _resolve_callback in ippfind.o
          _exec_program in ippfind.o
          _list_service in ippfind.o
      "__cupsLangPuts", referenced from:
          _main in ippfind.o
          _show_usage in ippfind.o
          _eval_expr in ippfind.o
          _exec_program in ippfind.o
      "__cupsSetLocale", referenced from:
          _main in ippfind.o
      "__cups_strcasecmp", referenced from:
          _get_service in ippfind.o
      "_cupsAddOption", referenced from:
          _resolve_callback in ippfind.o
      "_cupsArrayAdd", referenced from:
          _main in ippfind.o
          _get_service in ippfind.o
      "_cupsArrayCount", referenced from:
          _main in ippfind.o
      "_cupsArrayFind", referenced from:
          _get_service in ippfind.o
      "_cupsArrayFirst", referenced from:
          _main in ippfind.o
      "_cupsArrayNew", referenced from:
          _main in ippfind.o
      "_cupsArrayNext", referenced from:
          _main in ippfind.o
          _get_service in ippfind.o
      "_cupsDoRequest", referenced from:
          _list_service in ippfind.o
      "_cupsFileFind", referenced from:
          _exec_program in ippfind.o
      "_cupsGetOption", referenced from:
          _resolve_callback in ippfind.o
          _eval_expr in ippfind.o
          _exec_program in ippfind.o
      "_cupsLastError", referenced from:
          _list_service in ippfind.o
      "_cupsUser", referenced from:
          _list_service in ippfind.o
      "_httpAddrConnect", referenced from:
          _list_service in ippfind.o
      "_httpAddrFreeList", referenced from:
          _list_service in ippfind.o
      "_httpAddrGetList", referenced from:
          _list_service in ippfind.o
      "_httpAssembleURI", referenced from:
          _resolve_callback in ippfind.o
      "_httpClose", referenced from:
          _list_service in ippfind.o
      "_httpConnect2", referenced from:
          _list_service in ippfind.o
      "_httpFlush", referenced from:
          _list_service in ippfind.o
      "_httpGet", referenced from:
          _list_service in ippfind.o
      "_httpUpdate", referenced from:
          _list_service in ippfind.o
      "_ippAddString", referenced from:
          _list_service in ippfind.o
      "_ippAddStrings", referenced from:
          _list_service in ippfind.o
      "_ippDelete", referenced from:
          _list_service in ippfind.o
      "_ippEnumString", referenced from:
          _list_service in ippfind.o
      "_ippFindAttribute", referenced from:
          _list_service in ippfind.o
      "_ippGetBoolean", referenced from:
          _list_service in ippfind.o
      "_ippGetCount", referenced from:
          _list_service in ippfind.o
      "_ippGetInteger", referenced from:
          _list_service in ippfind.o
      "_ippGetString", referenced from:
          _list_service in ippfind.o
      "_ippNewRequest", referenced from:
          _list_service in ippfind.o
      "_ippSetVersion", referenced from:
          _list_service in ippfind.o
    ld: symbol(s) not found for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[1]: *** [ippfind] Error 1
    make: *** [all] Error 1
    Ok, so a few questions:

    1) Should I try and install an older version? If so, which?

    2) Or should I do
    I have a time machine back-up. Would that revert the system to its old state?

    3) Why does Apple publish this software and nowhere mention (as far as I can tell) that it makes 32-bit applications unusable? Or is it so obvious that it's not worth mentioning?
     
  16. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #16
    No.

    Possibly.

    Sure, assuming you have Time Machine back-up everything (which I think is the default). Based on the install.txt, it should be enough to restore just /etc, /usr, and /var.

    Because they don't expect newbies to try to build the CUPS package from source and clobber the package which is nicely provided with the OS? :)

    In any case, good luck.
     
  17. Dark Dragoon macrumors 6502a

    Dark Dragoon

    Joined:
    Jul 28, 2006
    Location:
    UK
    #17
    No.

    You should be able to do an in place reinstall of OS X which would keep all your files and applications.
    Time Machine would be useful incase it goes wrong and you needed to do a clean install and restore.

    I don't think they are expecting people who are running OS X to try and install CUPS as it's already installed.

    CUPS is a project which Apple purchased in 2007, but as it's open source and used widely by other Unix-like OS's the code is available for people to compile to install or to make packages from.
     
  18. caoimhinoc thread starter macrumors newbie

    Joined:
    Jan 20, 2014
    #18
    I did a reinstall and I'm back to normal. Now I can see if I can get those printers working.
     

Share This Page