Make returns me with an error

# $Id: PKGBUILD,v 1.12 2003/11/06 08:26:13 dorphell Exp $
# Maintainer:Tutku Dalmaz <tutkudalmaz>>
pkgname=loosecannon
pkgver=0.5.0
pkgrel=1
pkgdesc="Loose Cannon is 3D 3rd person action adventure game."
url="http://sourceforge.net/projects/loose-cannon/"
licence="GPL"
depends=('openal')
source=("http://belnet.dl.sourceforge.net/sourceforge/loose-cannon/$pkgname-$pkgver.tar.gz")
md5sums=('7ec489f393295c88f9ef4b3f9d0d2c52')
build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
this is my first PKGBUILD, i have written these but when i start with makepkg, after a while it gives me
make[2]: Entering directory `/home/titus/src/loosecannon/src/loosecannon-0.5.0'
make[2]: Nothing to be done for `install-exec-am'.
cp -r share/loosecannon /usr/share/
cp: cannot create directory `/usr/share/loosecannon': Permission denied
how can i correct this.

Lone_Wolf wrote:
try using $startdir/pkg/usr   as prefix for ./configure
like this :
./configure --prefix=$startdir/pkg/usr
This should be avoid because sometime the paths that are passed to the configure script are hardcoded in the app.
Here's the fixed PKGBUILD:
# Contributor:Tutku Dalmaz <tutkudalmaz>
pkgname=loosecannon
pkgver=0.5.0
pkgrel=1
pkgdesc="Loose Cannon is 3D 3rd person action adventure game."
url="http://sourceforge.net/projects/loose-cannon/"
licence="GPL"
depends=('python' 'mesa' 'sdl_image' 'freealut')
source=("http://dl.sourceforge.net/sourceforge/loose-cannon/$pkgname-$pkgver.tar.gz")
md5sums=('7ec489f393295c88f9ef4b3f9d0d2c52')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
install -d $startdir/pkg/usr/share
make DESTDIR=$startdir/pkg datadir=$startdir/pkg/usr/share install
chmod 644 $startdir/pkg/usr/share/loosecannon/snds/hover.wav
These kinds of problems are usually solved by looking at the Makefile. Some Makefiles don't use the DESTDIR variable for the installation location. The variable has another name like prefix, PREFIX, INSTALL_ROOT, etc or the Makefile is broken like in this case. It use DESTDIR for the executable but not for the data:
cp -r share/loosecannon $(datadir)/
. So I gave it the wanted datadir path, completed depends, etc.

Similar Messages

  • @Return - Help with displaying error correctly

    Hi,
    I'm trying to use the @Return function to block users from entering a negative value in the 'FTE' member of the 'F T E' dimension.  When I run the below from Business Rules menu it displays the error correctly in a window.  However when I run when it's attached to a webform which I need, the error displays as:
    Error Detected while attempting to run job:  AAA - Non Discretionary Allocation - Budget.
    ADF_FACES-60097: For more information, please see the servers' error log for an entry beginning with:  ADF_FACES-60096:Server Exception during PPR, #3
    So my question is why does it work perfectly from Business Rules menu but not from the Webforms?
    Fix (  "No FTE" )
             "512100" (
             If(@ISMBR("8900"))
             If("FTE" < 0)
             @RETURN( @CONCATENATE(
                                 @CONCATENATE("Negative values are not allowed as input into the dimension 'F T E' for member:[", @NAME(@CURRMBR("F T E"))),
                                 "]. Please input a value greater or equal to zero to continue.")
             , ERROR);
            ELSE
             @Round("FTE" * "Avg School Principal Salary"->"No Dept"->"Preliminary (Rolled)"->"No Fund"->"No Program",-2);
             Endif Endif )

    Is that your real script? If you are only looking at "No FTE" (assuming it is from "F T E" dimension) why currmbr?
    What is 8900 and 512100 are they accounts? If so why are you opening 512100 and checking for 8900?
    If I were you and trying something like this and hit and error, I would try to put a value and see if that works or not. So if FTE<0 put 1 else put the formula.
    Regards
    Celvin

  • How to make xml validation with automatic error fixed

    Hi', i have some string which i want to validate it:
    String word = "<style>body {background-color:transparent}";     
    byte[] bytes = word.getBytes();
    InputStream inputStream = new ByteArrayInputStream(bytes);
    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
    docBuilderFactory.setValidating(true);                    
    DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
    DOcument doc = docBuilder.parse(inputStream);This code will produce some exception like this:
    Warning: validation was turned on but an org.xml.sax.ErrorHandler was not set, which is probably not what is desired.  Parser will use a default ErrorHandler to print the first 10  errors.  Please call the setErrorHandler method to fix this.
    Error: URI = "null", Line = "1", : Document root element "style", must match DOCTYPE root "null".
    Error: URI = "null", Line = "1", : Document is invalid: no grammar found.
    org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.Is there anyway to make this validation not only show the errors but automatic fix it?
    Thanks a lot...

    I mean there is no general method which is capable of correcting all possible errors found by schema validation.
    For example if the validation says it expected to find an <organization> element or a <company> element but it found a <banana> element, there is no way to determine what repair is necessary.
    Anyway the requirement is fighting against the way things work in the real world. The purpose of validation is just to find out whether a document matches a schema. If it doesn't, then too bad. Send it back to be fixed or replaced. If you are having a problem because you repeatedly get documents which don't quite match your schema, then you need to train the users to produce valid documents or to give them tools which help them do that.

  • Help with SIGSEGV error, please?

    Greetings,
    I have no idea what this error log means. It only happens on one computer, so it isn't the program. Something in the system is messed up. Can anyone tell what from this?
    # A fatal error has been detected by the Java Runtime Environment:
    #  SIGSEGV (0xb) at pc=0x00007fff840542db, pid=533, tid=36871
    # JRE version: 7.0_10-b18
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.6-b04 mixed mode bsd-amd64 compressed oops)
    # Problematic frame:
    # C  [libGL.dylib+0x22db]  glGetString+0xf
    # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
    http://pastie.org/8138651
    And where do I type "ulimit -c unlimited"? I typed it in Terminal, but nothing happened.
    Thanks

    Hi, I�m currently writing some code that requires me
    to read in a list of names and prices from a txt file
    then sort them, I have so far successfully created a
    menu and the code to read in my txt file "cars.txt"
    however it is returning me with an error, I need to
    sort this part out before I can move on to the
    sorting section, any help would be much appreciated,
    James
    C:\Documents and Settings\James\Desktop\lateast
    java\carprogramjames.java:54: unreported exception
    java.io.FileNotFoundException; must be caught or
    declared to be thrown
              Scanner scan = new Scanner (myFile);
              ^
    1 error
    Tool completed with exit code 1Do it like this:
    public void ReadCarsAndPricesFromFile() throws FileNotFoundException {
    }orpublic void ReadCarsAndPricesFromFile() {
        try {
            Scanner scan = new Scanner (myFile);
        } catch(FileNotFoundException  fnfe) {
            fnfe.printStackTrace();
    }Details:
    http://java.sun.com/docs/books/tutorial/essential/exceptions/
    And also take the time to read this:
    http://java.sun.com/docs/codeconv/html/CodeConventions.doc8.html
    Good luck.

  • Power Query occassionally connects, seems to load, but returns only 200 rows with 1 error

    I have a Power Query that i have used for few weeks, successfully, but occasionally requires being run a few times to return records.  Just lately it seems to require run more than a few times to make it work. 
    When it doesn't return records , it seems to connects and start retrieving data, but returns only randomly like 100 - 200 rows with 1 error.  The error doesn't have any message. So its hard to troubleshoot from that perspective.
    Query appends two other large and merges in a few others. The data sources are either csv files, Sharepoint Lists and tables in workbook.
    I haven't identified anything in terms of environment or query changes that might cause this.
    When it finally does retrieve all records,  it might be after i have done the following things, but i can't say for certain exactly what did the trick:
    * to run query multiple times
    *maybe simply changing anything in query resolves issue
    * making upstream queries (that are merged or appended into this query)  to Not Load to worksheet or model, eg just have connection
    I'd think this type of error and situation while not common is encountered by others.
    Does this ring a bell for anyone, and if so, can you please shed some light on the reasons and resolutions for this?
    Thanks!

    If you click on "1 error" it should show the editor with a query that will select the rows with errors. This unfortunately might not show all errors for various reasons, but you should try it.
    If that doesn't work, here's an example of how to retrieve error details.
    Suppose the following query:
    = Table.FromRecords({[A="B", B="C" + 1]})
    Notice how we're using the + operator with a string and number. This will result in an error.
    I can create a custom column that uses the 'try' operator over the B column. This returns a record with details which I then expand to retrieve the message.
    let
    Source = Table.FromRecords({[A="B", B="C" + 1]}),
    #"Added Custom" = Table.AddColumn(Source, "Custom", each try [B]),
    #"Expand Custom" = Table.ExpandRecordColumn(#"Added Custom", "Custom", {"HasError", "Error"}, {"Custom.HasError", "Custom.Error"}),
    #"Expand Custom.Error" = Table.ExpandRecordColumn(#"Expand Custom", "Custom.Error", {"Message"}, {"Custom.Error.Message"})
    in
    #"Expand Custom.Error"
    Let me know how this works for you.
    Tristan

  • Make failed with ld error... [SOLVED]

    hello!
    I try to upgrade kchmviewer to version 1.3, but make failed with ld error:
    /usr/bin/ld: cannot find -lXext
    collect2: ld returned 1 exit status
    But libXext.so is here!
    $ locate Xext
    /usr/X11R6/lib/libXext.so
    /usr/X11R6/lib/libXext.so.6.4
    /usr/X11R6/lib/libXext.a
    /usr/X11R6/lib/libXext.so.6
    /usr/X11R6/include/X11/extensions/panoramiXext.h
    /usr/X11R6/include/X11/extensions/Xext.h
    $ cat /etc/ld.so.conf
    # /etc/ld.so.conf
    /usr/X11R6/lib
    /opt/gnome/lib
    /opt/qt/lib
    /opt/xfce4/lib
    #/usr/lib/oracle/10.1.0.2/client/lib
    /opt/mono/lib
    /opt/mozilla/lib/firefox
    So I'm alittle confused... Why ld can't find it?

    Thanks a lot guys!
    You helps me to find some way! I danced a newby jig around Makefile and now kchmviewer updated.
    /* Hope, PKGBUILD is alright */

  • TS3899 Having trouble accessing my email account thru the mail app, after entering the account information in the settings page, hotmail returns with the error message " The user name or password for Hotmail is incorrect

    Having trouble accessing my email account thru the mail app, after entering the account information in the settings page, hotmail returns with the error message " The user name or password for Hotmail is incorrect". Help

    Hotmail is having problems:
    http://bostinno.streetwise.co/2013/08/15/hotmail-outage-hotmail-is-down-for-user s-still-photos/
    http://www.engadget.com/2013/08/14/outlook-outage/
    http://www.infoworld.com/d/applications/microsofts-skydrive-outlookcom-are-down- some-users-224940
    http://mashable.com/2013/08/14/outlook-down/
    http://techcrunch.com/2013/08/14/microsoft-acknowledges-outlook-com-messenger-sk ydrive-outages/

  • Installing Elements 11 on Mac. Need help with install error "Setup wants to make changes."

    Installing Elements 11 on Mac 10.8.2. Need help with install error:  Setup wants to make changes. Type your password to allow this."  After entering Adobe password, nothing happens.  Locked from further installation.  Any ideas?  Adobe phone support could not help.

    Just before letting changes (installation in this case) be made on the system, Mac OS prompts for password & this has to be the Mac system password. This password prompt is the system's own native prompt & would accept the system password only. Please make sure it is the right system password (all/admin rights) and the installaion should run.

  • I get an error stating cc cookies dir: cannot make folder / cookies: Permission denied (error 13) when I attempted to download the creative cloud installer on my Mac. Can anyone help with similar pop up window?

    I get an error stating cc cookies dir: cannot make folder / cookies: Permission denied (error 13) when I attempted to download the creative cloud installer on my Mac. Can anyone help with similar pop up window?  I'm trying to get a trial version of CS5. 

    You do not need to involve Creative Cloud to install/try the trial version of CS5...
    You can download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    CS5: http://prodesigntools.com/all-adobe-cs5-direct-download-links.html

  • How to fix AppleEvent handler failed error with command "make new mailbox with properties"

    Below is the script I am running to create a hiearchy of new mailboxes inside "ON MY MAC" folder area.
    tell application "Mail"
      make new mailbox with properties {name:"ABar"}
      make new mailbox with properties {name:"ABar/Foo"}
      make new mailbox with properties {name:"ABar/Foo/Me"}
    end tell
    When I execute this the first mailbox is excuted fine but right afterwards I get the following error:
    error "Mail got an error: AppleEvent handler failed." number -10000
    I have tried adding delays but this does not work either. Code:
    tell application "Mail"
      make new mailbox with properties {name:"ABar"}
      delay 0.2
      make new mailbox with properties {name:"ABar/Foo"}
              delay 0.2
      make new mailbox with properties {name:"ABar/Foo/Me"}
    end tell
    However rerunning the script and skipping over the make command if the folder already exit, causes the next exuction time to create one more folder.
    Code:
    tell application "Mail"
              if (mailbox "ABar" exists) = false then
      make new mailbox with properties {name:"ABar"}
                        delay 0.2
              end if
              if (mailbox "ABar/Foo" exists) = false then
      make new mailbox with properties {name:"ABar/Foo"}
                        delay 0.2
              end if
              if (mailbox "ABar/Foo/Me" exists) = false then
      make new mailbox with properties {name:"ABar/Foo/Me"}
                        delay 0.2
              end if
    end tell
    ** Anyone know how to solve this or why this is happening? **
    It almost feels as if the hiearcgy is read into memory and this is not updated after the creation of the new mailbox.
    Thanks!

    Hi,
    The processors are different archiectures and you can not use binaries from one architecture to work on the other.
    Library name suffix differences is an example of the importance of this. Tuxedo 6.5 was separately built for each of those architectures and
    is available on the PeopleSoft distribution as distinct binaries. If your migration was purely from HPUX11.11 to HPUX11.23 you might have
    succeeded but the processor difference will not work for you and a core dump would not be unexpected.
    Bob Finan
    FYI:
    Tuxedo 6.5 is end-of-lifed and, since it's EOL has passed the stage for extended support possibility, no new patches will
    be created for it by engineering. You should look to migrate to a newer version of Tuxedo/Peoplesoft at the earliest
    possiblity.

  • What to do with this? "cookies dir: cannot make folder /cookies: Permission denied (error 13)"

    What to do in this case???
    cookies dir: cannot make folder /cookies: Permission denied (error 13)

    Re: Installing Creative Cloud Desktop but I got Error 13 an issue permission on my MacBookPro, why?

  • Is my HD Dead? Reformat Disk Utility Error: secure disk erase failed with the error could not open disk.

    Hi,
    Fed up with seeing the spinning beach ball I decided to reformat my MacBook Pro...
    After backing up everything on an external hard drive I put in the OSX install DVD, restarted the machine and held down 'C'.
    I followed the install prcedure, clicking next a few times etc...
    I then went into Utilities > Disk Utility. I chose 7-Pass to erase the Macintosh HD and set it off erasing.
    I checked the process an hour in and message on screen read:
    Secure disk erase failed with the error:
    could not open disk
    The internal hard drive no longer exists in the disk utility so I cant retry erasing it.
    The only thing that appears in disk utility is the OSX install DVD.
    I can't even shut down the mac as everything under the apple tab is greyed out!
    I'm guessing this means my hard drive is broken right?
    If anyone has any other ideas of what to try I'd really appreciate that.
    How do I turn the machine off?
    If my hard drive is gone then should I consider getting an SSD drive?
    Any recommendations for such a drive would be great.
    Hope you can help!

    Did you partition the drive?
    Extended Hard Drive Preparation
    1. Open Disk Utility in your Utilities folder. If you need to reformat your startup volume, then you must boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger or Leopard.)
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area. If it does not say "Verified" then the drive is failing or has failed and will need replacing. SMART info will not be reported on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Click on the Options button, set the partition scheme to GUID (only required for Intel Macs) then click on the OK button. Set the number of partitions from the dropdown menu (use 1 partition unless you wish to make more.) Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the volume(s) mount on the Desktop.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    Steps 4-6 are optional but should be used on a drive that has never been formatted before, if the format type is not Mac OS Extended, if the partition scheme has been changed, or if a different operating system (not OS X) has been installed on the drive.

  • Why do I get a 'Certutil: A referral was returned from the server' error when trying to publish my renewed Offline Root CRL to AD?

    Hi,
    I renewed my Offline Root CA and now trying to publish the CRL to AD on my Sub Issuing CA with the Certutil -dspublish command, however I get a 'Certutil: A referral was returned from the server' error.  Kinda makes sense cause the Offline Root CA is
    not on the network, so then how do I publish my renewed CRL to AD given this?
    Thanks for your help! SdeDot

    Looks like your CRL do not include Active Directory container specification and certutil don't know where to publish the CRL.
    Does root CA define LDAP url in CDP extension? If not, then you don't need to publish CRL in Active Directory, because no one will use it.
    Vadims Podāns, aka PowerShell CryptoGuy
    My weblog: en-us.sysadmins.lv
    PowerShell PKI Module: pspki.codeplex.com
    PowerShell Cmdlet Help Editor pscmdlethelpeditor.codeplex.com
    Check out new: SSL Certificate Verifier
    Check out new:
    PowerShell File Checksum Integrity Verifier tool.

  • Serial VISA 'Write' -why is it slow to return even with large buffer?

    Hi,
    I'm writing a serial data transfer code 'module' that will run 'in the background' on a cRIO-9014.  I'm a bit perplexed about how VISA write in particular seems to work.
    What I'm seeing is that the VISA Write takes about 177ms to 'return' from a 4096 byte write, even though my write buffer has been set to >> 4096.
    My expectation would be that the write completes near instantly as long as the VISA driver available buffer space is greater than the bytes waiting to be written, and that the write function would only 'slow down' up to the defined VISA timeout value if there was no room in the buffer.
    As such, I thought it would be possible to 'pre-load' the transmit buffer at a high rate, then, by careful selection of the time-out value relative to the baud rate, it would self-throttle once the buffer fills up?
    Based on my testing this is not the case, which leaves me wondering:
    a) If you try to set the transmit buffer to an unsupported value, will you get an error?
    b) Assuming 'yes' to a, what the heck is the purpose of the serial write buffer? I see no difference running with serial buffer size == data chunk size and serial buffer size >> data chunk size??
    QFang
    CLD LabVIEW 7.1 to 2013

    Hi, I can quickly show the low-level part as a png. It's a sub-vi for transferring file segments.  Some things like the thin 'in-line' VI with (s) as the icon were added to help me look at were the hold-up is.  I cropped the image to make it more readable, the cut-off left and right side is just the input and output clusters.
    In a nut-shell, the VISA Write takes as much time to 'return' as it would take to transfer x bytes over y baud rate.  In other words, even though there is suppused to be a (software or hardware) write and read buffer on the com port, the VISA write function seems to block until the message has physically left the port (OR it writes TO the buffer at the same speed the buffer writes out of the port).  This is very unexpected to me, and what prompted me to ask about what the point is of the write buffer in the first place?  -The observations are on a 9014 RT target built in serial port.  Not sure if the same is observed on other targets or other OS's.  [edit: and the observation holds even if transmitting block-sizes of say 4096 with a buffer size of 4096 or 2*4096 or 10 * 4096 etc. I also tried smaller block sizes and larger block sizes with larger still buffers.  I was able to verify that the buffer re-size function does error out if I give it an insane input buffer size request, so I'm taking that to mean that when I assign e.g. a 4MiB buffer space with no error, the write buffer actually IS 4MiB, but I have not found a property to read back what the HW buffer is, so all I have to base that on is the lack of an error during buffer size setting.) [\edit\]
    The rest of the code is somewhat irrelelvant to this discussion, however, to better understand it, the idea is that the remote side of the connection will request various things, including a file.  The remote side can request a file as a stream of messages each of size 'Block Size (bytes)', or it can request a particular block (for handling e.g. re-transmission if file MD5 checksum does not match).   The other main reason for doing block transfers is that VISA Write hogs a substantial ammount of CPU, so if you were to attempt to write e.g. a 4MiB file out the serial port, assuming your VISA time-out is sufficiently long for that size transfer, the write would succeed, but you would see ~50% CPU from this one thread alone and (depending on baud rates) it could remain at that level for a verrry long time.   So, by transferring smaller segments at a time, I can arbitrarily insert delays between segments to let the CPU sleep (at the expense of longer transfer times).  The first inner case shown that opens the file only runs for new transfers, the open file ref is kept on a shift register in the calling VI.  The 'get file offset' function after the read was just something I was looking at during (continued) development, and not required for the functionality that I'm describing.
    QFang
    CLD LabVIEW 7.1 to 2013

  • When opening the Calendar app, I am greeted with a box that says "This calendar can not be refreshed."  After clicking on "OK" another box pops up saying "The server responded with an error."  How can I get rid of these?

    When opening the Calendar app, I am greeted with a box that says "This calendar can not be refreshed," and after clicking ok there is another box saying "The server responded with an error."  How do I get rid of this.  The calendar functions all right, but just have to close both of those boxes after doing any action in the calendar app.

    Please take each of the following steps that you haven't already tried, until the problem is resolved. Back up all databefore making any changes.
    Step 1
    From the Calendar menu bar, select
    Calendar ▹ Preferences ▹ Accounts
    Choose the affected account from the list on the left and uncheck the box marked
    Enable this account
    Then check the box again. Test.
    Step 2
    Make a note of the account settings, then delete the account and add it back with the same settings.
    Step 3
    If you can't add the account, the settings may be invalid. Verify them. How you do that depends on what kind of account it is. If it's a Google calendar and you've activated 2-step verification, you need to generate an application-specific password in your Google account and enter it in place of your old password.
    Step 4
    Quit Calendar. Triple-click the line below on this page to select it:  
    ~/Library/Calendars/Calendar Cache  
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a file named "Calendar Cache" selected.
    Move the selected file to the Trash. There may be one or two other files in the same folder with names that begin in "Calendar Cache". If so, delete those files too.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

Maybe you are looking for