[Solved] Permissions problem /usr/bin/install: cannot create

I've been looking at this for quite a while now and am running out of ideas/inspiration. Google isn't helping and after reading the docs on the wiki, I'm still none the wiser.
So, I've compiled the source code properly but my PKGFILE is having a problem at the make install stage:
make[2]: Entering directory `/home/adam/Downloads/foo/src/foobillard-2.9/src'
/bin/sh ../mkinstalldirs /usr/bin
/usr/bin/install -c foobillard /usr/bin/foobillard
/usr/bin/install: cannot create regular file ‘/usr/bin/foobillard’: Permission denied
make[2]: *** [install-binPROGRAMS] Error 1
make[2]: Leaving directory `/home/adam/Downloads/foo/src/foobillard-2.9/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/adam/Downloads/foo/src/foobillard-2.9/src'
make: *** [install-recursive] Error 1
==> ERROR: A failure occurred in build().
Aborting...
My PKGFILE can be seen at: http://pastebin.com/wrbZ6niq.
TIA
Last edited by kabads (2013-05-14 20:50:54)

kabads wrote: and after reading the docs on the wiki, I'm still none the wiser.
What exactly have you been reading? Because if you take /usr/share/pacman/PKGBUILD.proto or read https://wiki.archlinux.org/index.php/Creating_Packages, you can't get to what you have without some serious changes. It seems like you took some bad and old PKGBUILD (not PKGFILE) as a starting point instead of more official/up-to-date docs.
At the very least you should read the section about the package() function.
Edit: now you can copy/paste from the above reply, but try to understand how makepkg works. And since you passed the prefix to ./configure, it's unlikely that you'll need it again for the install step.
Last edited by Raynman (2013-05-14 20:25:51)

Similar Messages

  • [solved] build failing: /usr/bin/ld: cannot find -lgd

    I'm trying to satisfy crossover dependencies and recommendations. Found lib32-libgphoto2 on AUR with a few dependencies of its own, all of which I installed succesfully.
    When doing a makepkg for lib32-libgphoto2 I get the following error:
    libtool: link: gcc -m32 -shared -fPIC -DPIC ax203/.libs/ax203_la-library.o ax203/.libs/ax203_la-ax203.o ax203/.libs/ax203_la-ax203_decode_yuv.o ax203/.libs/ax203_la-ax203_decode_yuv_delta.o ax203/.libs/ax203_la-ax203_compress_jpeg.o ax203/.libs/ax203_la-jpeg_memsrcdest.o ax203/.libs/ax203_la-tinyjpeg.o ax203/.libs/ax203_la-jidctflt.o -Wl,-rpath -Wl,/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2/.libs -Wl,-rpath -Wl,/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2_port/libgphoto2_port/.libs -L/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2_port/libgphoto2_port/.libs ../libgphoto2/.libs/libgphoto2.so -L/usr/lib32 /home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2_port/libgphoto2_port/.libs/libgphoto2_port.so -lexif ../libgphoto2_port/libgphoto2_port/.libs/libgphoto2_port.so -lltdl -lpthread -lgd -lz -lm -lpng16 -lfreetype -lfontconfig -ljpeg -m32 -march=x86-64 -mtune=generic -O2 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-soname -Wl,ax203.so -Wl,-version-script -Wl,.libs/ax203.ver -o .libs/ax203.so
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../libgd.so when searching for -lgd
    /usr/bin/ld: skipping incompatible /usr/lib/libgd.so when searching for -lgd
    /usr/bin/ld: cannot find -lgd
    collect2: error: ld returned 1 exit status
    Makefile:1659: recipe for target 'ax203.la' failed
    make[3]: *** [ax203.la] Error 1
    make[3]: Leaving directory '/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/camlibs'
    Makefile:3347: recipe for target 'all-recursive' failed
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory '/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/camlibs'
    Makefile:622: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory '/home/someuser/Downloads/aur/lib32-libgphoto2/src/build'
    Makefile:444: recipe for target 'all' failed
    make: *** [all] Error 2
    ==> ERROR: A failure occurred in build().
    Aborting...
    In that blob of text it says 'skipping incompatible' so it found something but I don't know to fix that or find out what it needs. A search on the internet I found that the message (in title) means I'm missing 32-bit library for gd, so I pulled that from AUR and installed it, but its still giving me this message.
    Any ideas what I need to do to get this to build?
    Thanks in advance.
    Last edited by mouseman (2014-05-05 05:24:27)

    The linker tries to find libgd. so. If you build lib32-libgphoto2, I guess from the name that you are building a 32 bit package on a 64 bits installation. You should have the 32 bit version of libgd. so and you only have the 64 bit version (hence skipping incompatible /usr/lib/libgd.so). Note that I have not found this version in the multilib repository (nor on AUR), I think you will have to build it yourself.

  • [SOLVED] Permissions for /usr/bin/ping

    Earlier today I found myself unable to use ping, getting the following error message.
    [cyang@blueberry ~]% ping google.com
    ping: icmp open socket: Operation not permitted
    However, I found that pinging as root still worked.
    [cyang@blueberry ~]% sudo ping google.com
    PING google.com (74.125.225.35) 56(84) bytes of data.
    64 bytes from ord08s06-in-f3.1e100.net (74.125.225.35): icmp_req=1 ttl=54 time=24.3 ms
    64 bytes from ord08s06-in-f3.1e100.net (74.125.225.35): icmp_req=2 ttl=54 time=23.5 ms
    ^C
    --- google.com ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1001ms
    rtt min/avg/max/mdev = 23.583/23.978/24.374/0.424 ms
    I found a page which described a similar problem and solution which worked for me:
    http://forums.cpanel.net/f5/ping-icmp-o … 14173.html
    Now I have a couple of questions:
    Is this the correct way to fix this problem? Or is this dangerous (I'm not too familiar with setuid)?
    What caused this to occur? I had no problems previously. I see that my iputils package which owns ping was last updated over a month ago, has anyone else seen this issue?
    Thanks,
    Chun
    Last edited by cyang (2012-08-28 03:51:39)

    Arctus wrote:Take a look at this.
    Same issue about a month ago, including causes and solutions.
    This looks promising. I'm running a custom kernel with security labels disabled. I'll try to recompile to see if that fixes it.

  • [SOLVED]pacman fails to upgrade... /usr/bin/vercmp: cannot execute bin

    Proceed with installation? [Y/n] y
    :: Retrieving packages from core...
    pacman-3.2.1-1-x86_64 491.3K 1850.7K/s 00:00:00 [########################################################################################################] 100%
    checking package integrity...
    (1/1) checking for file conflicts [########################################################################################################] 100%
    (1/1) upgrading pacman [########################################################################################################] 100%
    warning: /etc/pacman.d/mirrorlist installed as /etc/pacman.d/mirrorlist.pacnew
    /tmp/alpm_eT02H1/.INSTALL: line 5: /usr/bin/vercmp: cannot execute binary file
    /tmp/alpm_eT02H1/.INSTALL: line 5: [: : integer expression expected
    Here is more info on my system and the file vermcp is installed and permissions seem correct.
    http://rafb.net/p/MYk3pO21.html
    HELP?
    Last edited by rooloo (2008-09-09 00:07:09)

    Ok, this was my dumb mistake again. I was testing out powerpill on my server which is a 32 bit machine. I tried copying my 64 bit mirrorlist to my 32 bit server because I have it ranked and slimmed down to only the essential servers.

  • [SOLVED] .. error: coreutils: /usr/bin/install exists in filesystem

    Hi All,
    Getting the following error:
    (85/85) checking for file conflicts [###########################] 100%
    error: failed to commit transaction (conflicting files)
    coreutils: /usr/bin/install exists in filesystem
    I am reluctant to delete/move /usr/bin/install for fear of breaking the system ..
    Anyone help here?
    Last edited by bmentink (2012-04-05 02:26:42)

    I just ran into this same issue today while performing a full system upgrade. After some investigation, I came to agree with the OP that manually removing "/usr/bin/install" is the correct action to take.
    Prior to successfully executing the full system upgrade, I found that /usr/bin/install was a symlink to /bin/install. Using "pacman -Qo /bin/install", I found that the file /bin/install was owned by the coreutils 8.15-1 package. The symlink /usr/bin/install, however, was not owned by any package. The conflict arises because coreutils 8.16-2 wants to put the new install program in /usr/bin instead of its previous location under /bin.
    My memory is a bit fuzzy, but I seem to recall running into a problem installing some third party library that had /usr/bin/install hard-coded into its build script and claimed the file didn't exist. I may have manually created the symlink /usr/bin/install to /bin/install as a quick-fix, then forgot to remove it. In retrospect, I could have confirmed/refuted this hypothesis by comparing the time stamp on the symlink /usr/bin/install to /bin/install. If the symlink was created well after /bin/install, then I'm probably to blaim; on the other hand, if the symlink was created essentially at the time /bin/install was created, then most likely the creators of the coreutils package forgot to claim ownership of the symlink.

  • "/usr/bin/ld: cannot find -lgcrypt " having libgcrypt installed !?!

    Hello,
    I got this problem while trying to install "uswsusp" from AUR with yaourt, when it comes to compile :
    gcc -DS2RAM -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -static -o resume resume-resume.o libsuspend-common.a -llzo2 -lgcrypt -lgpg-error
    /usr/bin/ld: cannot find -lgcrypt
    But libgcrypt is already installed and the programs seems to find it :
    checking for libgcrypt... found
    I didn't managed to find anything across the web... Thanks in advance for any help !

    ankan has a solution in the AUR comments: http://aur.archlinux.org/packages.php?ID=14093
    ankan wrote:
    "-static" disables linkning with dynamic libraries. So you have the package - but not the static libraries.
    Try rebuilding libgcrypt from abs and remove "--disable-static".
    It looks like you guys are new users, so you might not know how ABS works yet.  Take a look here for a quick walkthrough on ABS and makepkg.  You'll need to edit libgcrypt's stock PKGBUILD file and take out "--disable-static" before you run makepkg.
    Last edited by creslin (2008-10-15 23:09:05)

  • SeLinux Checkpolicy install error ( /usr/bin/ld: cannot find -lfl)

    I am trying to setup selinux per the arch wiki, but I ran into an error when trying to install the checkpolicy package from the AUR. I keep getting the following error:
    ==> Starting build()...
      cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o checkpolicy.o -c checkpolicy.c
      bison -y -d policy_parse.y
      cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o y.tab.o -c y.tab.c
      lex policy_scan.l
      cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o lex.yy.o -c lex.yy.c
      cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o queue.o -c queue.c
      cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o module_compiler.o -c module_compiler.c
      cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o parse_util.o -c parse_util.c
      cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o policy_define.o -c policy_define.c
      cc -Wl,-O1,--sort-common,--as-needed,-z,relro  checkpolicy.o y.tab.o lex.yy.o queue.o module_compiler.o parse_util.o policy_define.o  /usr/lib/libsepol.a -lfl -o checkpolicy
      /usr/bin/ld: cannot find -lfl
      collect2: error: ld returned 1 exit status
      <builtin>: recipe for target 'checkpolicy' failed
      make: *** [checkpolicy] Error 1
    any ideas? I have been googling for a few hours trying to find out about the -lfl and to see if i am missing it , but cannot figure this out. I downloaded the tar for checkpolicy and have the same issue.
    Should I be altering the makefile in anyway so that /usr/bin/ld can find -lfl ?
    Last edited by johnnyboy (2014-11-12 06:43:49)

    @Allan: The selinux-flex package is needed as part of the installation process.
    Something tells me that this AUR package needs to be updated.
    But yes, a solution appears to be to remove selinux-flex and install flex and then compile checkpolicy.
    Last edited by clfarron4 (2014-11-12 12:36:42)

  • Libx32-glibc fails to build - /usr/bin/ld: cannot find -lgcc

    I am trying to run steam using my own runtime libraries, however I'm missing libcrypt.so.11
    After trawling through a chain of dependencies, I'm stuck on libx32-glibc.
    When attmpting to build libx32-glibc I encounter an error while gcc is trying to compile elf/librtld.mapT
    [myusername@hostname libx32-glibc]$ makepkg -R
    ==> Making package: libx32-glibc 2.18_12-1 (Sun Feb 9 18:12:22 NZDT 2014)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Removing existing pkg/ directory...
    ==> Entering fakeroot environment...
    ==> Starting package()...
    LANGUAGE=C LC_ALL=C; export LANGUAGE LC_ALL; \
    make -r PARALLELMFLAGS="" -C /home/myusername/aur/libx32-glibc/src/glibc-2.18 objdir=`pwd` install
    make[1]: Entering directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18'
    make subdir=csu -C csu ..=../ subdir_lib
    make subdir=iconv -C iconv ..=../ subdir_lib
    make[2]: Entering directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18/iconv'
    make[2]: Nothing to be done for 'subdir_lib'.
    make[2]: Leaving directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18/iconv'
    make[2]: Entering directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18/login'
    make[2]: Nothing to be done for 'subdir_lib'.
    make[2]: Leaving directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18/login'
    make subdir=elf -C elf ..=../ subdir_lib
    make[2]: Entering directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18/elf'
    /opt/gcc-x32-seed/bin/gcc -mx32 -B/opt/gcc-x32-seed/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/ -Wl,-O1,--sort-common,--as-needed,-z,relro -nostdlib -nostartfiles -r -o /home/myusername/aur/libx32-glibc/src/glibc-build/elf/librtld.map.o '-Wl,-(' /home/myusername/aur/libx32-glibc/src/glibc-build/elf/dl-allobjs.os /home/myusername/aur/libx32-glibc/src/glibc-build/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/home/myusername/aur/libx32-glibc/src/glibc-build/elf/librtld.mapT
    /usr/bin/ld: cannot find -lgcc
    collect2: error: ld returned 1 exit status
    Makefile:285: recipe for target '/home/myusername/aur/libx32-glibc/src/glibc-build/elf/librtld.map' failed
    make[2]: *** [/home/myusername/aur/libx32-glibc/src/glibc-build/elf/librtld.map] Error 1
    make[2]: Leaving directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18/elf'
    Makefile:236: recipe for target 'elf/subdir_lib' failed
    make[1]: *** [elf/subdir_lib] Error 2
    make[1]: Leaving directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18'
    Makefile:12: recipe for target 'install' failed
    make: *** [install] Error 2
    ==> ERROR: A failure occurred in package().
    Aborting...
    In accordance with this solved topic for a similar issue, I have ensured that options=('staticlibs') is present in PKGBUILD:
    options=('!strip' '!emptydirs' 'staticlibs')
    I have tried re downloading and compiling all the src but the same issue occurs.
    Here is a list of gcc/glibc/multilib packages that I have installed:
    [mephage@tws01 exercise1]$ pacman -Q | grep -E -e 'multilib|gcc|glibc'
    binutils-multilib 2.24-1
    gcc-libs-multilib 4.8.2-7
    gcc-multilib 4.8.2-7
    gcc-x32-seed 4.8.2_7-1
    glibc 2.18-12
    glibc-x32-seed 0.1.0-1
    lib32-gcc-libs 4.8.2-7
    lib32-glibc 2.18-12
    libtool-multilib 2.4.2-12
    Here is a list of aur packages that I have installed:
    [mephage@tws01 exercise1]$ pacman -Qm
    gcc-x32-seed 4.8.2_7-1
    glibc-x32-seed 0.1.0-1
    linux-ck 3.12.9-3
    linux-ck-headers 3.12.9-3
    nvidia-ck 331.38-2
    xdm-arch-theme 2.3.1-3

    Still haven't resolved this. However, I did see that there is more information in /home/myusername/dir-where-i-extract-aur-tarballs/libx32-glibc/src/glibc-build/config.log:
    /usr/bin/ld: cannot find -lgcc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    /usr/bin/ld: cannot find -lc
    /usr/bin/ld: cannot find -lgcc
    collect2: error: ld returned 1 exit status
    My guess is that I need a compatible libc.so so that /usr/bin/ld can create the links using gcc.
    Edit: Removed a line that was incorrect
    Last edited by mephage (2014-02-23 04:54:07)

  • Patch 8557019 -  /usr/bin/ld: cannot find -ldeb

    Hi there,
    I have upgraded an ebs system from 11-5-10-2-1 to r12 12.1.3 - I am in the process of patchiong reports and forms to latest version (10.1.2.3.1)
    unfortunately one of the patches errors.
    The system is on Linux x86-64
    Here is what I did and what I experienced :-
    cd /u03/oraupg/inst/apps/oraupg_findbupg/ora/10.1.2
    sh oraupg_findbupg.env
    linux32 bash
    cd /u03/oraupg/apps/patches/10-1-2-patches/8557019
    opatch apply
    What I experienced :-
    [applmgr@findbupg 8557019]$ opatch apply
    Oracle Interim Patch Installer version 1.0.0.0.63
    Copyright (c) 2009 Oracle Corporation. All Rights Reserved..
    Oracle recommends you to use the latest OPatch version
    and read the OPatch documentation available in the OPatch/docs
    directory for usage. For information about the latest OPatch and
    other support-related issues, refer to document ID 293369.1
    available on My Oracle Support (https://myoraclesupport.oracle.com)
    Oracle Home : /u03/oraupg/apps/tech_st/10.1.2
    Oracle Home Inventory : /u03/oraupg/apps/tech_st/10.1.2/inventory
    Central Inventory : /u01/oracle/product/oraInventory
    from : /etc/oraInst.loc
    OUI location : /u03/oraupg/apps/tech_st/10.1.2/oui
    OUI shared library : /u03/oraupg/apps/tech_st/10.1.2/oui/lib/linux/liboraInstaller.so
    Java location : /u03/oraupg/apps/tech_st/10.1.2/jre/1.4.2/bin/java
    Log file location : /u03/oraupg/apps/tech_st/10.1.2/.patch_storage/<patch ID>/*.log
    Creating log file "/u03/oraupg/apps/tech_st/10.1.2/.patch_storage/8557019/Apply_8557019_05-31-2011_16-29-40.log"
    Invoking fuser to check for active processes.
    Provide your email address to be informed of security issues, install and
    initiate Oracle Configuration Manager. Easier for you if you use your My
    Oracle Support Email address/User Name.
    Visit http://www.oracle.com/support/policies.html for details.
    Email address/User Name:
    You have not provided an email address for notification of security issues.
    Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: Yes
    Oracle Configuration Manager has been installed but not configured. OCM enables
    Oracle to provide superior, proactive support for our customers. Oracle
    strongly recommends customers configure OCM. To complete the configuration of
    OCM, refer to the OCM Installation and Administration Guide
    (http://www.oracle.com/technology/documentation/ocm.html).
    Backing up comps.xml ...
    OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.
    Please shut down Oracle instances running out of this ORACLE_HOME
    (Oracle Home = /u03/oraupg/apps/tech_st/10.1.2)
    Is this system ready for updating?
    Please respond Y|N >
    Y
    Applying patch 8557019...
    Patching archive files...
    Running make for target install.
    OPatch found the word "error" in stderr, please look into it.
    You may have to run the make again.
    Stderr Output (from /u03/oraupg/apps/tech_st/10.1.2/.patch_storage/8557019/make_local.stderr):
    /usr/bin/ld: skipping incompatible /u03/oraupg/apps/tech_st/10.1.2/lib//libdeb.so when searching for -ldeb
    /usr/bin/ld: skipping incompatible /u03/oraupg/apps/tech_st/10.1.2/lib//libdeb.a when searching for -ldeb
    /usr/bin/ld: skipping incompatible /u03/oraupg/apps/tech_st/10.1.2/lib//libdeb.so when searching for -ldeb
    /usr/bin/ld: skipping incompatible /u03/oraupg/apps/tech_st/10.1.2/lib//libdeb.a when searching for -ldeb
    /usr/bin/ld: skipping incompatible /u03/oraupg/apps/tech_st/10.1.2/lib/libdeb.so when searching for -ldeb
    /usr/bin/ld: skipping incompatible /u03/oraupg/apps/tech_st/10.1.2/lib/libdeb.a when searching for -ldeb
    /usr/bin/ld: cannot find -ldeb
    collect2: ld returned 1 exit status
    make: *** [dejvm] Error 1
    [email protected] - June 1, 2011 9:57:54 AM GMT+12:00 [Update from Customer]
    OPatch encounters the following issues during Make:
    There were problems running make commands. The errors encounted were:
    Error for command: cd /u03/oraupg/apps/tech_st/10.1.2//procbuilder/lib
    /usr/bin/make -f ins_procbuilder.mk install ORACLE_HOME="/u03/oraupg/apps/tech_st/10.1.2" 2>/u03/oraupg/apps/tech_st/10.1.2/.patch_storage/8557019/make_local.stderr
    Replying 'Y' will terminate the patch installation immediately.It WILL NOT restore any updates that have been performed to this point. It WILL NOT update the inventory.
    Replying 'N' will continue with updating the inventory showing the patch has been applied.
    NOTE: After replying either 'Y' or 'N' it is critical to review:
    My Oracle Support Note 312767.1 How to rollback a failed Interim patch installation.
    Do you want to STOP?
    Please respond Y|N >
    Y
    Make Error!
    ERROR: OPatch failed during patching, possibly due to missing files.
    [applmgr@findbupg 8557019]$
    Welcome advice re how to fix this problem - thanks to all who have helped me in the past.
    cheers, Rob

    Hello Diesel,
    As per Note 1266729.1 : "Applying Patch 8557019 and encounter /usr/bin/ld: cannot find -ldeb error running make -f ins_procbuilder.mk install" this can be fixed by appying patch 8551790 first.
    Regards, Carlo.

  • Compiling error with /usr/bin/ld: cannot find -l error

    With the help of ToddLittle, I have solved a lot of problem with tuxedo as I am a freshman to it.Thank you ToddLittle!
    However I meet a new problem with compiling my new program. I got this error:
    /usr/bin/ld: cannot find -l/home/cjf/oracle/tuxedo12.1.1.0/include
    where /home/cjf/oracle/tuxedo12.1.1.0 is my tuxedo installation path.
    I build it under ubuntu 12.04 64 bit and my IDE is eclipse.
    How to solve it? thanks!

    Usually it is best to execute the script that is installed in the Tuxedo installation directory that sets up all the necessary environment variables.  That script is $TUXDIR/tux.env.  Source that script before trying to use buildclient or buildserver or any other Tuxedo command to solve most problems like this.
    PS You might want to check out Solaris Studio if you want to use an IDE as there is a Tuxedo plug-in for it that really helps in developing Tuxedo applications.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • Can't build jade package, /usr/bin/ld: cannot find -lsp

    Hello everyone (my first post here )
    I installed Archlinux because of it's ease of use when compiling the whole system (compared to Gentoo and others), I have my first install of Archlinux, and began to compile all packages in the system using the pacbuilder community script (note I havn't use the testing repositories when installing packages).
    Some packages compiles well but when it comes to the jade package it fails, I got the following error:
    /usr/bin/ld: cannot find -lsp
    collect2: ld returned 1 exit status
    make[2]: *** [libspgrove.la] Error 1
    make[2]: Leaving directory `/tmp/pacbuilder/build/jade/src/jade-1.2.1/spgrove'
    make[1]: *** [spgrove] Error 2
    make[1]: *** Waiting for unfinished jobs....
    /usr/bin/ld: cannot find -lsp
    collect2: ld returned 1 exit status
    make[2]: *** [libstyle.la] Error 1
    make[2]: Leaving directory `/tmp/pacbuilder/build/jade/src/jade-1.2.1/style'
    make[1]: *** [style] Error 2
    make[2]: Leaving directory `/tmp/pacbuilder/build/jade/src/jade-1.2.1/lib'
    make[1]: Leaving directory `/tmp/pacbuilder/build/jade/src/jade-1.2.1'
    make: *** [all] Error 2
    I think I'm missing some devlopment library that comtains the lsp command, right?
    Please help me to solve the problem
    thanks

    Thank you Allan,
    It worked when changing the PKGBUILD within the jade folder in /tmp/pacbuilder/build, but I must change this file after that pacbuilder made the folder and before the building process begin (you have a shore time to edit, and it is not practical when building the whole system) is it any better ide like editing another file in ABS..?

  • /usr/bin/ld: CANNOT EXECUTE binary file!

    So whenever I try to compile something, I get to the step
    checking for gcc... gcc
    checking for C compiler default output file name...
    configure: error: C compiler cannot create executables
    See `config.log' for more details.
    And looking at the log, my problem is...
    /usr/bin/ld: /usr/bin/ld: cannot execute binary file
    Which... Is bad. Yes, I've tried chmodding it +x. I've also tried logging in as root and trying to run it, no luck.
    What's wrong? =/
    Would asking someone else with an iMac G5 to send me theirs, fix it?

    Running configure on all open source packages brings me to the ld cannot execute error in configure.log. In this case I was attempting to build libssh2 (SSH functions for PHP).
    Thanks for the link Nils, I'll try that.

  • "/usr/bin/ld: cannot find -luu" - can't compile kl

    I'm trying to make a package for klibido ( http://klibido.sourceforge.net/ ).
    I keep having this error when I try to compile it :
    /usr/bin/ld: cannot find -luu
    Does anyone know this problem ?
    Thanks !

    I made a package for uudeview and I installed it.
    It's in /usr.
    Here is the full error message :
    /bin/sh ../libtool --silent --tag=CXX --mode=link g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -march=i686 -O2 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -L/lib -luu -o klibido -R /opt/kde/lib -R /opt/qt/lib -R /usr/X11R6/lib -L/usr/X11R6/lib -L/opt/qt/lib -L/opt/kde/lib main.o klibido.o grouplist.o serverslist.o newsgroup.o addform.o headerlist.o binheader.o header.o hlistviewitem.o nntpthreadsocket.o queueparts.o qmgr.o addserver.o prefgeneral.o prefdialog.o globals.o availablegroups.o updatedb.o fileviewer.o progress.o prefdecode.o downloadselect.o catman.o prefview.o prefheader.o decoder.o uudecoder.o yydecoder.o updopt.o nzbform.o groupWidget.o serversWidget.o NewsGroupForm.o qmgrform.o serverdlg.o prefgenerallayout.o progressdlg.o prefdecodelauyout.o downloadselectdlg.o catmandlg.o prefviewlayout.o prefheaderlayout.o updoptdlg.o addformdlg.o nzbformdlg.o availablegroups.moc.o queueparts.moc.o -ldb_cxx -lkmdi -lkdeui -ldb
    /usr/bin/ld: cannot find -luu
    collect2: ld returned 1 exit status
    make[2]: *** [klibido] Erreur 1
    make[2]: Leaving directory `/var/abs/local/klibido/src/klibido-0.2.2.2/src'
    make[1]: *** [all-recursive] Erreur 1
    make[1]: Leaving directory `/var/abs/local/klibido/src/klibido-0.2.2.2'
    make: *** [all] Erreur 2
    ==> ERROR: Build Failed. Aborting...

  • /usr/bin/install is missing!

    Well, I don't know how this one happened.  I was trying to "make install" a program I had just finished compiling, and then I get a message saying that /usr/bin/install is missing.  I checked /usr/bin for "install", and it isn't there, even though it was before.  How do I fix this problem?
    Last edited by Falcata (2008-01-25 22:02:46)

    Problem solved.  I made a link to /bin/install under /usr/bin, and it worked fine.
    Now then, another question: why did Nodoka get installed under /usr/local/lib, rather than /usr/lib?
    EDIT: Should have waited a moment before posting, I guess.  How do you install packages from AUR?  Or packages that you downloaded onto your system?
    Last edited by Falcata (2008-01-25 23:41:26)

  • Error : /usr/bin/ld: cannot find -lmvec

    Hi All,
    I am trying to build an application where compiler flag "-xvector=lib" is used.
    An i get error "/usr/bin/ld: cannot find -lmvec"
    If i remove this flag then this error disappears.
    Can anybody explain the changes i should make to use this flag "-xvector=lib".
    Can anybody identify the solution to this problem because i must use this falg.
    Thanks and Regards
    Ganesh

    With -xvector=lib, compiler may generate calls to vectorized routines which reside in libmvec.so (on solaris),
    hence -lmvec passed to linker. I think that libmvec.so wasn't ported to Linux, so -xvector=lib does not work
    (not supported) on Linux

Maybe you are looking for