lion,xcode,error,homebrewRelated issues-Collection of common programming errors


  • CourtDemone
    php mac memcached memcache lion
    I’ve been asked to launch a site that someone else built. It is a WordPress shop site that needs Memcached to run, and I’ve been having troubles getting Memcached and the memcache php plugin working on my local server. Before installing memcached and the memcache PHP plugin, I would get this error:Fatal error: Class ‘Memcache’ not found in [Path]wp-content/object-cache.php on line 350Now that I have memcached and the memcache PHP plugin installed (via Homebrew), I get a “No data received” page,

  • Matt
    macosx database postgresql lion osx-lion
    I’m completely helpless, maybe you guys can help me out. I installed PostgreSQL under my new MacOSX Lion. When I try to connect to my localhost with pgAdminIII.app it says:Error connecting to the database: FATAL password authentication failed for user postgres I just have no idea what to do? Non of my passwords work. Neither my adminpass nor “postgres” nor anyhting else.I tried to install it again via the console where I found this helpful link: http://www.peerassembly.com/2011/08/…resql-on-l

  • Meltemi
    lion permission homebrew server.app
    I’m using Homebrew to manage package installs on Lion (Lion Server actually but this shouldn’t matter).Homebrew was installed under one user. Now a different user would like to add a package and Homebrew isn’t happy:$ brew update fatal: Unable to create ‘/usr/local/.git/index.lock’: Permission denied Error: Failure while executing: git checkout -q masterIs this considered bad? I thought one of the advantages of using /usr/local/ for your installs was that you don’t need sudo. But clearly we do.

  • DGDD
    lion macbook-pro crash
    Out of nowhere, my MacBook Pro 2011 unibody running 10.7.5 began to crash. After the crashes, in the boot sequence you could see very thin horizontal red lines. The red lines were so thin that I can’t take a picture as the lines won’t show up in photos. While you could see the red lines across the screen, the computer will not boot up, not even to recovery. After leaving the computer off for a few hours, it will boot-up like nothing happened.After diagnosis of the whole comp, it turned out I had

  • voretaq7
    macosx lion
    Multi-user screen sharing was advertised as one of the new features in OS X Lion. My college is running Lion on an Xserve server for a couple of our classes, and I administer this server.We have been trying to have students connect to the Mac server using various Windows VNC clients, mainly Terminals, but also tried UltraVNC and TightVNC. We are having a lot of issues; the clients will freeze and/or fail to connect, and most disturbingly, remotely connected users’ displays will show on the physi

  • MvG
    lion java 32-bit
    MotivationI have a proprietary java application which used to work under Snow Leopard but fails under Lion with the following backtrace:Exception in thread “AWT-EventQueue-0” java.lang.IllegalArgumentException: Invalid display modeat apple.awt.CGraphicsDevice.setDisplayMode(CGraphicsDevice.java:472)at apple.awt.CGraphicsDevice.setFullScreenWindowSynchronized(CGraphicsDevice.java:363)at apple.awt.CGraphicsDevice.access$000(CGraphicsDevice.java:25)at apple.awt.CGraphicsDevice$1SetFullScreenAction.

  • Mikey T.K.
    osx lion networking dns
    I’ve recently (as in minutes ago) added a hostname and reverse (A and PTR) records for a hostname on my internal network, using a Bind DNS server. For some reason, i can both dig and nslookup this new name successfully, but ping and my GUI applications can not resolve the name.I have attempted flushing the DNS cache on my local machine with dscacheutil -flushcache to no effect.Here’s an example of my session (names, IPs changed for security):$ nslookup newbox.internal server 10.0.0.2 address

  • Josh
    lion dmg nfs
    I’ve discovered a strange problem… if I have disk image files (DMGs) which reside on a read-only NFS share, I cannot open these in Mac OS X 10.7.5. The same files open fine when accessed over AFP. However, trying to open them using hdiutil attach when they’re on the NFS share results in “attach failed – Read-only file system”:bash-3.2# /usr/bin/hdiutil attach /Volumes/nfs_share/Some.dmg hdiutil: attach failed – Read-only file systemEven if the AFP share is read-only, I can attach those same im

  • bmike
    lion server.app ldap
    Similar to slapd daemon can’t start but despite being accepted, the answer didn’t really work for the asker. Shut down Lion Server 10.7.5 (on a 2011 Mini Server) today after Time Machine got itself in a tizzy and failed to backup for several hours while claiming it was “stopping” (presumably unrelated to problem, just the why of restarting it.)Shut down hung – after 15 minutes or so I powered it off.When it came back up, there was a red ball at the right of the username box with a nastygram indi

  • Evan Kroske
    lion filevault filesystem hfs
    I’ve been researching FileVault 2 to make sure that I understand it before I enable it on my Mac. While reading Macworld’s Complete guide to FileVault 2 in Lion, I encountered an unexpected caveat (emphasis mine):It’s probably worth mentioning that someone who steals a FileVault-enabled Mac can never shut down or restart the machine without losing access to the booted machine’s startup drive. (Although they probably wouldn’t realize this until after shutting down or restarting.) This also means

  • shaik riyaz
    ios objective-c xcode core-data
    The Xcode compiler keeps on telling me that I am missing a bracket before the F in FATAL (error commented out), but I can’t make sense of this. Can you tell me what’s missing or needs to change?-(void)viewDidLoad {// 1NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];// 2NSEntityDescription *entity = [NSEntityDescriptionentityForName:@”Location”inManagedObjectContext:self.managedObjectContext];[fetchRequest setEntity:entity];// 3NSSortDescriptor *sortDescriptor = [NSSortDescriptor so

  • Iphone Developer
    xcode git xcode4.6
    Recently I started getting this error everytime I commit to my local Xcode git.fatal: Not a git repository (or any parent up to mount point /Volumes/xxx) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).I have partitioned my HDD into 2 drives and my source code is on one of them. All my source is local and I’m just using the built in Git with Xcode. Any clues why I get this error?

  • connor
    ios xcode facebook cordova sdk
    everyone!So… I just made an app using cordova to compile an xcode project. Ok.The app works fine, when the facebookSDK.framework isn’t in the project. The pages does not load just because the user has to be logged into facebook. Whatever… But when I insert the facebookSDK.framework (downloaded from developers.facebook.com), I got a Build Fail and the following error:ld: 475 duplicate symbols for architecture i386clang: error: linker command failed with exit code 1 (use -v to see invocation)I

  • iOS
    iphone ios xcode
    i am working on iphone app, at once it started showing me error, with no exception, i am really afraid of this error, can any one tell me why this is happening?<Error>: CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming up

  • rmaddy
    ios xcode
    Tried to restore xcode 5 project from backup because something I added to the app wasn’t working and now get a fatal error.I have no idea how to fix this, first I got this msg:fatal error: file ‘/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h’ has been modified since the precompiled header ‘/Users/Mallory/Library/Developer/Xcode/DerivedData/ModuleCache/29VIL254

  • Nic Foster
    c++ xcode
    I’ve been making changes to my project all day, building and running the project, and now suddenly when trying to build I am now getting this error:fatal error: file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h’ has been modified since the precompiled header was builtWhen I attempt to clean the project by going to Product -> Clean it refuses to clean and gives me the same

  • rmaddy
    xcode xcode4.5
    When I try to rename any image name in my Xcode Project it gives following error.fatal: Unable to create ‘/.git/index.lock’: File exists. If no other git process is currently running, this probably means a git process crashed in this repository earlier. Make sure no other git process is running and remove the file manually to continue.Don’t know what is going wrong. Thanks in Advance.

  • iOS Dev
    ios xcode
    Checked all of the question shown in image but nothing works out.In xcode 5 I m getting this issue fatal error: file ‘/Applications/Xcode2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h’has been modified since the precompiled header’/Users/administrator/Library/Developer/Xcode/DerivedData/ModuleCache/220IXKWL5NEDF/UIKit.pcm’was built note: after modifying system headers, please delete themodule c

  • Masi
    osx xcode libraries
    I want to import the code base WFDB into XCode. Source is here.In Eclipse, there is a command by which you can import a code base of Zip-file into Eclipse. It seems that there is no such tool for C-codes.Trying to build from scratch in OSXI runsudo make installI getcd lib; /Applications/Xcode.app/Contents/Developer/usr/bin/make install cp -p wfdblib.h /usr/include/wfdb; chmod 644 /usr/include/wfdb/wfdblib.h cp -p ecgcodes.h /usr/include/wfdb chmod 644 /usr/include/wfdb/ecgcodes.h cp -p ecgm

  • basvk
    xcode osx-mavericks git-svn
    I recently updated from Mountain Lion to Mavericks and for some reason I can’t use any git+svn commands anymore, it doesn’t matter which repo I use, I all get simular errors:xxx@xxx:/path/$ sudo git svn clone http://svn.domain/path/ .Initialized empty Git repository in /path/.git/ W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem has no item: ‘/xxx’ path not found W: Do not be alarmed at the above message git-svn is just searching aggressively for old history. This m

  • bybe
    php joomla error phpbb http-code-500
    PHP Fatal error: Call to a member function setQuery() on a non-object in /home/josh/public_html/administrator/components/com_jfusion/plugins/phpbb3/forum.php on line 226Just moved over to a new server. Anyone have ideas as to what is wrong?Is this a database issue? line 226://get permissions for all forums in case more than one module/plugin is present with different settings$db = & JFusionFactory::getDatabase($this->getJname());$query = “SELECT forum_id FROM #__forums WHERE forum_type =

  • Beto Frega
    magento error
    None of out programmers has changed anything to the code, but out of nothing now, when a user tries to login on the backend, we have this error: Fatal error: Call to a member function children() on a non-object in/home/r1tech/public_html/app/code/core/Mage/Admin/Model/User.php online 437Any ideas why this is happening?

  • BrainStone
    debian java error ram
    I am currently having some issues running Java. It won’t start because of heap issues. But I have more than 9 GB Ram free (or even 16 GB if you assumed the cache would be empty). This is the error I get (and the free command)root@server: ~ # java Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.root@server: ~ # freetotal used free sha

  • PolyGeo
    error arcgis-online hosting
    I have been trying to locally host this webmap I created using AGOL (to modify it):http://dpwh.maps.arcgis.com/apps/MapTour/index.html?appid=7bd06d8330254b2688577d82f81bb92eIt uses the Map Tour template. I did step 1 of the readme file, and since I already had built the application inAGOL, skipped to step 5 and configured configOptions to use the appid, such as it now looks like thisconfigOptions = {// Enter either a web map ID or a web application ID// – Using a Map Tour application ID created

  • Aragon
    qgis legend error
    I’m developping a software using QGIS. When building my software there is a LINK error.1>mainwindow.obj : error LNK2019: symbole externe non résolu “public: __thiscall QgsLegend::QgsLegend(class QgsMapCanvas *,class QWidget *,char const *)”(??0QgsLegend@@QAE@PAVQgsMapCanvas@@PAVQWidget@@PBD@Z) référencé dans la fonction “public: __thiscall MainWindow::MainWindow(class QWidget *,class QFlags<enum Qt::WindowType>)” (??0MainWindow@@QAE@PAVQWidget@@V?$QFlags@W4WindowType@Qt@@@@@Z) 1>C:\

  • nute
    osx error shutdown kernel-panic
    I’ve never seen that. A kind of shade slowly took over my screen and a message asked me to hold the power button until the macbook shuts down.Here is the error report:Interval Since Last Panic Report: 412658 sec Panics Since Last Report: 1 Anonymous UUID: *****Tue Nov 8 19:08:57 2011 panic(cpu 0 caller 0xffffff80002c266d): Kernel trap at 0xffffff800023fb2f, type 14=page fault, registers: CR0: 0x000000008001003b, CR2: 0x0000000000000000, CR3: 0x000000003acc4044, CR4:

  • Daryl Spitzer
    install error homebrew git
    I’m trying to install Homebrew on OS X 10.8.4, and get the following:$ ruby -e “$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)” ==> This script will install: /usr/local/bin/brew /usr/local/Library/… /usr/local/share/man/man1/brew.1Press ENTER to continue or any other key to abort ==> Downloading and Installing Homebrew… error: Could not resolve host: (nil); nodename nor servname provided, or not known while accessing https://github.com/mxcl/homebrew/info/refs?service=git-upload-

  • KyleSA
    terminal homebrew error
    While my system was performing a $ brew update && brew upgrade we had a power failure and my iMac shut down while updating packages/dependancies.After rebooting I tried to run $ brew update && brew upgrade again and encountered the following error:fatal: unable to access ‘https://github.com/mxcl/homebrew/’: transfer closed with outstanding read data remainingError: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master$ brew doctor strangely retu

  • Hemang
    osx xcode error
    I just off to lunch break for 30 minutes, when returned back, Xcode shows me this message repeatedly, don’t know why this was happening, the only solution to get rid out of this is to Force quit the Xcode.Any idea what’s the reason for this?Configuration, Mac-Mini, OSX 10.7.4 + Xcode v.4.5 + iOS 6.0

  • bybe
    php wordpress error theme http-code-500
    I recently tried to change the logo on Genesis themed WordPress site using this tutorial:http://anewtab.com/add-logo-genesis-themeI added add_theme_support( ‘genesis-custom-header’, array( ‘width’ => 960, ‘hTo Dashboard->Editor->functions.php as said in the tutorial, and updated the theme. It didn’t really work as I hoped so I deleted the same line and updated it, now I get the server error as below and can’t access to my site. I get this message when I try to access to my site. Server error

  • Shankar Damodaran
    homebrew
    I get this error message when I install homebrew with curl: ruby -e “$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)”The error message is as following: error: RPC failed; result=18, HTTPcode = 200MiB | 55 KiB/s fatal: The remote end hung upunexpectedly fatal: early EOF fatal: recursion detected in die handlerFailed during: git fetch origin master:refs/remotes/origin/master -nAny advice? Thanks in advance.

  • otmezger
    python module homebrew mapnik
    I have 2 pythons on my mac (10.8.3): The default, and 2.7 version from homebrew. So far, I could install modules and use them with my brew python. I installed mapnik with brew install mapnik (mapnik-2.1.0) and it compiled correctly. But, if I open python and enter import mapnik, the following error comes and python exits:>>> import mapnik Fatal Python error: PyThreadState_Get: no current thread Abort trap: 6Mac os x also shows an error window, with the following content:Process:

  • Andrew
    mac php homebrew apc pecl
    I’m trying to install APC for PHP 5.3 in the easiest way possible. I love Homebrew so I started down that route. I was able to install PHP 5.3.6 with this command:brew install https://github.com/adamv/homebrew-alt/raw/master/duplicates/php.rb –with-mysqlI think this is supposed to install PHP, Pear, and PECL. It seems to install these just fine.Now when I try to install APC:$ pecl install apc downloading APC-3.1.9.tgz … Starting to download APC-3.1.9.tgz (155,540 bytes) ………………….

  • afpel
    osx git homebrew github
    This is driving me crazy. I can’t update my homebrew installation anymore. When I run brew update, it just does nothing and times out.I even tried reinstalling it, but then I run into the same problem when I use the default installer. I ended up using the “Untar anywhere” (https://github.com/mxcl/homebrew/wiki/Installation) option, which worked great. But I still can’t update homebrew.? brew update Initialized empty Git repository in /usr/local/homebrew/.git/ error: Failed connect to github.com:

  • Ako
    osx homebrew
    I have been a Linux user for a long time now mainly using Debian based systems. Recently I also bought a 15″ MacBooK Pro with Retina Display and now, I am trying to install my lovely command line tools using Homebrew on it.I have been successful so far, until now that I tried to install aria2 which failed. Here’s what happened:Akos-MacBook-Pro:tmp ako$ brew install aria2 ==> Downloading http://downloads.sourceforge.net/project/aria2/stable/aria2-1.18.0/aria2-1.18.0.tar.bz2 Already downloaded:

  • Framester
    python opencv homebrew
    I installed OpenCV via sudo brew install opencv. Then I added PYTHONPATH* to my ~/.profile as brew info opencv says**. With env I checked that the path was loaded. Now everytime I try to import cv, Python gives following error: Fatal Python error: PyThreadState_Get: no current thread Abort trap.What should I do?*PYTHONPATH=/usr/local/lib/python2.7/site-packages/:** actually, it points to folder python2.6 but 2.7 is the Python version I use and cv 2.2. supports it.

  • slhck
    osx osx-lion git homebrew
    I’m using OS X Lion (10.7.2).I installed Homebrew on my Mac, and I executed the command below.$ brew install gitand then:$ brew update error: Could not resolve host: github.com; nodename nor servname provided, or not known while accessing https://github.com/mxcl/homebrew.git/info/refs fatal: HTTP request failed Error: Failed while executing git pull origin refs/heads/master:refs/remotes/origin/masterWhat happened there?

  • Eric Baldwin
    mysql homebrew
    I installed Mysql 5.5 using Homebrew, specifically Homebrew versions – https://github.com/Homebrew/homebrew-versions. After the installation, I attempted to run the commands it suggests:Set up databases to run AS YOUR USER ACCOUNT with:unset TMPDIRmysql_install_db –verbose –user=`whoami` –basedir=”$(brew –prefix mysql)” –datadir=/usr/local/var/mysql –tmpdir=/tmp …However, the second line causes an error. When I run:mysql_install_db –verbose –user=`whoami` –basedir=”$(brew –prefix m

  • Luke Chadwick
    osx-lion apache-pig homebrew
    I’m trying to run pig locally, installed using homebrew, to test a script. However, I get the following error when I attempt to run a simple dump from the interactive prompt pig -x local:2012-07-16 23:20:40,447 [Thread-7] INFO org.apache.pig.backend.hadoop.executionengine.util.MapRedUtil – Total input paths (combined) to process : 1 [Fatal Error] :63:85: Character reference “&#2” is an invalid XML character. 2012-07-16 23:20:40,688 [Thread-7] FATAL org.apache.hadoop.conf.Configuration – err

  • Meltemi
    lion permission homebrew server.app
    I’m using Homebrew to manage package installs on Lion (Lion Server actually but this shouldn’t matter).Homebrew was installed under one user. Now a different user would like to add a package and Homebrew isn’t happy:$ brew update fatal: Unable to create ‘/usr/local/.git/index.lock’: Permission denied Error: Failure while executing: git checkout -q masterIs this considered bad? I thought one of the advantages of using /usr/local/ for your installs was that you don’t need sudo. But clearly we do.

Web site is in building