Howto extract into /usr/local

Hi,
how can i extract the linux self-extracting binary into the /usr/local directory instead of /usr/local/j2re1.4.2 ?
make it sense? or should i leave it in /usr/local/j2re1.4.2 ?
thanks
jim

how can i extract the linux self-extracting binary
into the /usr/local directory instead of
/usr/local/j2re1.4.2 ?You'll need to recreate the structure manually.
Extract to a temporary directory and then copy the insides of j2re1.4.2 to /usr/local. If you set everything else up correctly it should just work, though your /usr/local will probably be polluted with a few files which just won't look in place. :-)
make it sense? or should i leave it in
/usr/local/j2re1.4.2 ?Unless you really need (not want :-) to use /usr/local, stick with /usr/local/j2re1.4.2. It'll be a lot easier to upgrade to the next java version from this, rather than having to do a lot of manual work finding stray files.
Regards,
Bhaveet

Similar Messages

  • How to turn on permission to install software into /usr/local (OS 10.8)?

    $ ls /usr    shows /local
    $ ls /usr/local   shows permission denied
    When I try to install homebrew (which is trying to access /usr/local), permission is denied.
    How do I give myself permission?
    Thanks

    Choose Go to Folder from the Finder's Go menu and provide /Library/Application Support/Adobe/Common/Plug-ins/ as the path.
    (80035)

  • How to add /usr/local to sparse-root zone ?

    I had created sparse-root local zone. The installed some soft and realised that I would need /usr/locain the zone. But I have problem with adding it.
    Original configuration of the zone:
    bash-3.00# zonecfg -z z1
    zonecfg:z1> info
    zonepath: /zones/z1
    autoboot: true
    pool:
    inherit-pkg-dir:
    dir: /lib
    inherit-pkg-dir:
    dir: /platform
    inherit-pkg-dir:
    dir: /sbin
    inherit-pkg-dir:
    dir: /usr
    net:
    address: x.x.x.x/y
    physical: elxl0
    zonecfg:z1>Current configuration:
    bash-3.00# zonecfg -z z1
    zonecfg:z1> info
    zonepath: /zones/z1
    autoboot: true
    pool:
    inherit-pkg-dir:
    dir: /lib
    inherit-pkg-dir:
    dir: /platform
    inherit-pkg-dir:
    dir: /sbin
    inherit-pkg-dir:
    dir: /usr
    fs:
    dir: /usr/local
    special: /zones/z1-local
    raw not specified
    type: lofs
    options: [rw]
    net:
    address: x.x.x.x/y
    physical: elxl0Now:
    bash-3.00# zoneadm -z z1 boot
    zoneadm: zone 'z1': Could not mkdir /zones/z1/root/usr/local.
    zoneadm: zone 'z1': It is on a read-only file system in this local zone.
    zoneadm: zone 'z1': Make sure /usr/local exists in the global zone.
    zoneadm: zone 'z1': call to zoneadmd failedprzemol

    The messages contains all you need:
    zoneadm: zone 'z1': Make sure /usr/local exists in the global zone.Just do a "mkdir /usr/local" in global zone and your zone installation will work.
    But: Unfortunately you will get into trouble, if you want to install some software packages into /usr/local later.
    Installation of Software below an inherited filesystem like /usr is not supported and somewhat impossible. The fact that /usr/local is a mounted filesystem does not count here.
    These type of problems are already discussed in this forum...

  • Imac os 10.4.7: where is /usr/local ?

    Hi,
    I see a lot of installation instructions that say to install into /usr/local, but I don't have such a directory:
    $ ls -al /usr
    total 0
    drwxr-xr-x 9 root wheel 306 Feb 11 19:03 .
    drwxrwxr-t 31 root admin 1156 Mar 12 16:20 ..
    drwxr-xr-x 740 root wheel 25160 Feb 26 14:45 bin
    drwxr-xr-x 230 root wheel 7820 Feb 11 19:04 include
    drwxr-xr-x 273 root wheel 9282 Feb 11 19:25 lib
    drwxr-xr-x 72 root wheel 2448 Feb 11 19:03 libexec
    drwxr-xr-x 199 root wheel 6766 Feb 11 19:03 sbin
    drwxr-xr-x 50 root wheel 1700 Feb 11 19:03 share
    drwxr-xr-x 5 root wheel 170 Aug 10 2006 standalone
    Is there another place I'm supposed to install programs? Or, do I need to create that directory?

    It shouldn't really matter... especially considering that group doesn't have write access in either your case or my case.
    Three machines I checked at work, which were built from clean 10.4 installs and hence didn't initially have a /usr/local, currently have have group ownership on their manually created /usr/local set to wheel just like yours. These machines at work have actually used /usr/local for much more stuff than my home machine so using wheel as the group should be fine (and maybe even more correct than admin).
    Steve

  • OK to create /usr/local/bin?

    Hi,
    I tried today to install the command line utility for Growl, growlnotify. The installer script failed because it tried to install into /usr/local/bin which isn't there currently.
    Now, is it OK to just go ahead and run "mkdir /usr/local/bin" to create the directory? I am not very experienced with Unix so I usually don't touch the unix directories so that I don't mess up anything...
    Thanks!
    Ingo

    If you are the only or primary user of your computer, and you want to mess around, /usr/local is as good a place as any, since most software installs in it by default. Another option is to do stuff in your home directory.
    If you have a dumb installer or Makefile that tries to install and possibly over-write files in say /usr/bin, you would be tipped off by install permission failure, whereas if you issued "sudo make install" you are at the mercy of whomever wrote the Makefile.
    I actually build stuff in my home directory and install it into root-owned /usr/local, and the first time I issue "make -i install" I do it without write permissions and I can watch where it tries to put stuff. That is excessively paranoid. But its when you stop being paranoid.
    Anyway, it doesn't much matter. For security reasons on a multiuser system, it is best to have multi-user accessed executables in root-owned directories.

  • Accessing /usr/local/bin directory

    I'm new to Unix and trying to access the directories /usr/local/bin and usr/local/lib to put files into that I need to run a program, but Terminal keeps telling me "no such file or directory." I am doing this work on my own computer, but do I need special permission to access these files?
    Any advice on moving the files into these directories?

    Usually, files get into /usr/local when you run "configure && make && sudo make install". Since you're new, I would suggest running "configure", "make", and "sudo make install" separately until you get the hang of it.

  • /usr/local/bin OR /opt/local/bin

    I recently installed osxvnc and the install program put it into /opt/local/bin. I already had /usr/local/bin etc.
    Is there a standard way of doing this - that is using /opt/local or /usr/local or is opt for optional programs and /usr/local for locally developed programs?
    TIA

    Fink uses /sw and darwinports uses /opt/local specifically so that what you have in /usr/local doesn't interfere with fink, or with darwinports, and that their installs don't interfere with what you install manually into /usr/local.
    Use /usr/local for software you compile by hand that installs in there by default. Keep fink and darwinports separate from this, and separate from each other. The best way to do this is to leave everything as it is.
    If you want to, you can configure fink (and I assume darwinports) to install everything into /usr/local. Again, I suggest you not do it for the same reasons as just given. More details of how and why this was done are available on the fink and on the darwinports documentation sites.

  • Cannot load /usr/local/Zend/Core/modules/apache-eapi/libphp5.so into server

    Hello All.
    I download and install Zend Core for Oracle v.1 Linux x86-64 on
    Linux Server (2.6.9-42.0.3.ELsmp #1 SMP x86_64 x86_64 x86_64 GNU/Linux) and on the server I have Oracle Application Server 10g (1.2.0.2). I have the SELINUX=disable in the /etc/selinux/config and LD_LIBRARY_PATH= /usr/local/Zend/Core/lib/
    But when I start the midtier HTTPS I get the following error and not loading libphp5.so.
    ias-component/process-type/process-set:
    HTTP_Server/HTTP_Server/HTTP_Server
    Error
    --> Process (pid=3203)
    failed to start a managed process after the maximum retry limit
    Log:
    /oracle/ias/mid10g1202/opmn/logs/HTTP_Server~1
    the HTTP_Server~1 log file contains this error message.
    /oracle/ias/mid10g1202/Apache/Apache/bin/apachectl start: execing httpd
    Syntax error on line 1095 of /oracle/ias/mid10g1202/Apache/Apache/conf/httpd.conf:
    Cannot load /usr/local/Zend/Core/modules/apache-eapi/libphp5.so into server: /usr/local/Zend/Core/modules/apache-eapi/libphp5.so: cannot open shared object file: No such file or directory
    Every thing fine when remove this line from httpd.conf file
    LoadModule php5_module /usr/local/Zend/Core/modules/apache-eapi/libphp5.so
    help please.

    some info about the libphp5.so on the server.
    uname -a
    Linux web3 2.6.9-42.0.3.ELsmp #1 SMP Mon Sep 25 17:24:31 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux
    ls -l /usr/local/Zend/Core/modules/apache-eapi/libphp5.so
    -rwxr-xr-x 1 root root 5731064 Nov 19 16:25 /usr/local/Zend/Core/modules/apache-eapi/libphp5.so
    md5sum /usr/local/Zend/Core/modules/apache-eapi/libphp5.so
    e1b7ae62abb0989cc3e8600f0641095b /usr/local/Zend/Core/modules/apache-eapi/libphp5.so
    file /usr/local/Zend/Core/modules/apache-eapi/libphp5.so
    /usr/local/Zend/Core/modules/apache-eapi/libphp5.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), stripped
    ldd /usr/local/Zend/Core/modules/apache-eapi/libphp5.so
    libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000002a95bf4000)
    libz.so => /usr/local/Zend/Core/lib/libz.so (0x0000002a95d28000)
    libssl.so.0.9.8 => /usr/local/Zend/Core/lib/libssl.so.0.9.8 (0x0000002a95e41000)
    libcrypto.so.0.9.8 => /usr/local/Zend/Core/lib/libcrypto.so.0.9.8 (0x0000002a95f9d000)
    libresolv.so.2 => /lib64/libresolv.so.2 (0x0000002a9626a000)
    libimf.so => /usr/local/Zend/Core/lib/libimf.so (0x0000002a9637f000)
    libm.so.6 => /lib64/tls/libm.so.6 (0x0000002a966e8000)
    libnsl.so.1 => /lib64/libnsl.so.1 (0x0000002a9686e000)
    libxml2.so.2 => /usr/local/Zend/Core/lib/libxml2.so.2 (0x0000002a96985000)
    libiconv.so.2 => /usr/local/Zend/Core/lib/libiconv.so.2 (0x0000002a96c82000)
    libsvml.so => /usr/local/Zend/Core/lib/libsvml.so (0x0000002a96e66000)
    libirc.so => /usr/local/Zend/Core/lib/libirc.so (0x0000002a96fa9000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000002a970eb000)
    libc.so.6 => /lib64/tls/libc.so.6 (0x0000002a971f6000)
    libdl.so.2 => /lib64/libdl.so.2 (0x0000002a9742a000)
    /lib64/ld-linux-x86-64.so.2 (0x000000552aaaa000)

  • Does Time Machine backup system files (/usr/local/*)?

    Does Time Machine backup system files (/usr/local/*)?
    If so how do you locate them in the Time Machine interface?
    If I go into Time Machine mode and type say "/usr/local" in the Time Machine search bar I get nothing although I can open a terminal application and cd to /usr/local and see bin, lib, include, etc.
    Of course I can never see /usr/local in Finder either ... only at the command line.
    Thanks.

    John, another tech pro ("baltwo") suggests:
    Run this in the Terminal:
    defaults write com.apple.finder AppleShowAllFiles 1
    OPTION-click and hold on Finder's Dock icon->Relaunch which reveals all hidden files. Then, look for that file and delete it. To hide all of those, use the same command, substituiting zero for the one, and relaunch the Finder.

  • How do I add /usr/local/bin to path

    Hi.
    I have installed arch linux on a server.
    It seems really very good - manged to install latest snort-inline easily...
    However (and this is really a completely NOOB question)
    - how do I add /usr/local/bin to the default (root) path ?
    I have tried to add
    PATH=/usr/local/bin
    to /etc/enviornment
    But it did not show up when using the - env command (after re-logging in)
    I know that I could sym link to /usr/bin but i would like to know.
    Any help would be good
    Cheers
    Last edited by yossarianuk (2008-10-02 10:31:21)

    There's a place for all three of /usr/bin, /usr/local/bin, and ~/bin --- even on Arch.
    If you download package whizbang-1.2.3 from some non-Arch site, its installer will often by default try to install its files into the /usr/local hierarchy. When making a PKGBUILD, you want to tell it instead to install into $pkgdir/usr, so that when you install the resulting pkg file with pacman, it goes into the /usr hierarchy. That's what the wiki page is saying: pacman-managed stuff goes into the /usr hierarchy.
    /usr/local/* is for files you want to install systemwide without making a PKGBUILD. Your own scripts are a great example. Also you might want to install some compiled files that way, if making a PKGBUILD isn't worth it or you don't have the time to write (*and maintain!*) one.
    ~/bin is for scripts (could be compiled files too) that you want to only be available to that specific user.

  • Simple script in /usr/local/bin just won't start - SOLVED

    I put this really simple script for starting psi into my /usr/local/bin, set it a+xr and added /usr/local/bin to my path. However, I just can't start the damn thing.
    Here's the script itself (I really don't think there's something wrong with it, since if I type it in the shell it works fine):
    #!/bin/zsh/
    #start psi, never stop
    while true;
    do psi;
    done
    Here's my users $PATH:
    ─$ print $PATH
    /bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/usr/local/bin:/opt/kde/bin:/opt/mozilla/bin:/opt/qt/bin
    Here's the permissions of the script:
    $ ls -lah /usr/local/bin
    total 4.0K
    drwxr-xr-x 2 root root 80 Dec 15 03:52 ./
    drwxr-xr-x 10 root root 240 Dec 10 18:55 ../
    -rwxrwxr-x 1 kamagurka users 60 Dec 15 03:51 psi.start*
    And here's what happens when I try to execute it:
    $ psi.start
    zsh: command not found: psi.start
    So, I'm either missing something incredibly obvious, or something freaky's going on here. I hope it's the former.
    EDIT: I had no idea where to put this, so I put it into Desktop Env since I'm trying to start a graphical app, but feel free to move it.
    EDIT: Yea, I was being a little dense.

    smoon wrote:Not sure if that's the problem, but try removing the trailing / (slash) from your script's shebang.
    See, something really obvious. Stupid, even. You can see, I don't do a lot of scripting.

  • QuickView - How to auto save extracted data to local file.

    Hi all,
    I am using Quickview to extract data. I need to run the Quickview query in background and auto save the data extracted into local file (ASCII file). Currently when I specified File Store (as my Output Format) and entered a file name (e.g C:\Temp\test.asc). Upon completion of extraction there was a little window pop up that required me to select data format (e.g DAT, ASC) and click <Transfer> button to proceed to save data into local file.
    Is there a way that I can save data into local file without having to manually select ASC data format and click <Transfer> button. I will not be able to schedule my QuickView query to run in background if I can't resolve this problem.
    Note that I don't have access to ABAP programming, therefore this option is out.
    Thanks in advance to anyone who can share your expertise experience.

    What's in the cluster?  Can you show us some code?
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Posix_spawn("/usr/local/sbin/dnsupdate", ...): No such file or directory

    Hello,
    This errors are repeting again and again :
    27/07/13 15:52:57
    com.apple.launchd[1]
    (org.dnsupdate.daemon[36847]) posix_spawn("/usr/local/sbin/dnsupdate", ...): No such file or directory
    27/07/13 15:52:57
    com.apple.launchd[1]
    (org.dnsupdate.daemon[36847]) Exited with exit code: 1
    27/07/13 15:52:57
    com.apple.launchd[1]
    (org.dnsupdate.daemon) Throttling respawn: Will start in 10 seconds
    27/07/13 15:53:07
    com.apple.launchd[1]
    (org.dnsupdate.daemon[36917]) posix_spawn("/usr/local/sbin/dnsupdate", ...): No such file or directory
    27/07/13 15:53:07
    com.apple.launchd[1]
    (org.dnsupdate.daemon[36917]) Exited with exit code: 1
    27/07/13 15:53:07
    com.apple.launchd[1]
    (org.dnsupdate.daemon) Throttling respawn: Will start in 10 seconds
    27/07/13 15:53:17
    com.apple.launchd[1]
    (org.dnsupdate.daemon[36964]) posix_spawn("/usr/local/sbin/dnsupdate", ...): No such file or directory
    27/07/13 15:53:17
    com.apple.launchd[1]
    (org.dnsupdate.daemon[36964]) Exited with exit code: 1
    27/07/13 15:53:17
    com.apple.launchd[1]
    (org.dnsupdate.daemon) Throttling respawn: Will start in 10 seconds
    27/07/13 15:53:27
    com.apple.launchd[1]
    (org.dnsupdate.daemon[37034]) posix_spawn("/usr/local/sbin/dnsupdate", ...): No such file or directory
    27/07/13 15:53:27
    com.apple.launchd[1]
    (org.dnsupdate.daemon[37034]) Exited with exit code: 1
    27/07/13 15:53:27
    com.apple.launchd[1]
    (org.dnsupdate.daemon) Throttling respawn: Will start in 10 seconds
    Cordialy!

    The /user/local directory is site-specific and usually locally-installed stuff; software and tools and libraries that have been installed into the Unix environment.  That directory doesn't usually have any OS X files in it, unless somebody copied something there.
    In this case, some software expects a DNS update tool to exist in the /usr/local directory, and it's not there or not there anymore, and some other piece(s) are trying to start the operation via launchd, and failing.
    The source of the tool looks to be www.dnsupdate.org, though that site is offline right now.
    Do you want or need help putting the dnsupdate stuff back, or possibly removing the launchd widget that's trying to activate the (missing) tool?

  • Why is /usr/local/lib not in ld.so.conf?

    Pretty much just as the subject line says.  It seems that, since /usr/local/lib is recognized by the FHS (http://www.pathname.com/fhs/pub/fhs-2.3 … ALHIERARCH) it makes sense for it to be included in the default set of library paths.  Does anybody know why it isn't?  I searched *.archlinux.org and didn't find anything enlightening.  My apologies if this has been covered before; please pass along a link if it has!  Thanks.

    /usr/local is considered "kinda sloppy" by whom exactly?  It is the standard place for hand-compiled software to be installed, so it is physically separated from distro-installed software.  This is an explicit requirement of the Filesystem Hierarchy Standard, and is built into every piece of GNU software, as well as every piece of software that uses autoconf.
    Sure, Arch forces you to "learn linux".  The lesson to be learned here is not how to dig through /etc, but rather that there are standard, universally-accepted places to put things.  The operating system ought to support these places so that all one needs to do to install additional software is to put it there, and not have to mess around with system configuration files in the first place.  Why do you think the world has moved towards /etc/foo.conf.d directories instead of having to edit /etc/foo.conf over and over again?  You could say that all I have to do is add another (few) /etc/*.conf.d/bar files, but I hold that /usr/local is so standard that this should either be built in or such files should be shipped by default.
    In the more immediate, the use of /usr/local is sufficiently prevalent that requiring someone to modify /etc/profile to use it is ludicrous.  System-wide configuration files like /etc/profile are highly inconvenient to edit, because whenever they are upgraded, one has to migrate modifications one way or the other.
    And to further rebut your point, the filesystem package already includes the /usr/local hierarchy:
    $ pacman -Ql filesystem | grep local
    filesystem /usr/local/
    filesystem /usr/local/bin/
    filesystem /usr/local/games/
    filesystem /usr/local/include/
    filesystem /usr/local/lib/
    filesystem /usr/local/man/
    filesystem /usr/local/sbin/
    filesystem /usr/local/share/
    filesystem /usr/local/share/man
    filesystem /usr/local/src/
    filesystem /var/local/
    so why don't the init scripts (which are also in the filesystem package) enable its use?

  • How to inherit /usr and make /usr/local read/write

    Is there some way where I can make "/usr" a inherit-pkg-dir, and yet make "/usr/local" a read/write directory. I notice a lot of things I compile want to use "/usr/local" to write to, yet I don't want to remove the inherit for /usr, since a lot of packages go into that directory I would like inherited.
    One work around I tried was to make a symbolic link in the global from "/usr/local" to /local" on the root, and then create a "/local" directory in the non-global zone. This still caused problems.
    So is there any other work arounds or do I have to remove the inherit for "/usr" to make "/usr/local" writeable?

    One work around I tried was to make a symbolic link
    nk in the global from "/usr/local" to /local" on the
    root, and then create a "/local" directory in the
    non-global zone. This still caused problems.We've had success here using the workaround you mentioned.
    We install all of our large software packages in /opt/<package-version>, and treat them as if they are read-only. There are a few exceptions to this -- there are some vendor supplied packages that can't be configured to write logs/configs/whatever outside of it's base directory. The packages supporting our in house software is called /opt/company.
    When it comes to collections of small utilities (awk, fileutils, findutils, etc, etc) we pre-install as much stuff as makes sense with a prefix of /opt/local-<version>, and then distribute this to all of our machines (And subsequently treat it as read only). If we find we missed something that needs to go everywhere, we'll update the /opt/local-<version+1> and change the symlinks to /opt/local. If it's something that just needs to run on a couple machines we'll just make a new /opt/<package-version>.
    In the global zone, we make a symlink for /opt/(read/write dir) to go to a /local/opt/. When /opt is mounted read-only on a zone, the symlinks within /opt point to whatever /local/ that is hosted local to the zone. So our /local directory might have /local/opt/company, /local/opt/inflexible-vendor-1.0.2, etc.
    So far, we have half a dozen test zones created like this and haven't seen any problems. What kind of issues are you seeing when installing like this? (crossing fingers we haven't missed a Fatal Flaw :-))
    -A

Maybe you are looking for

  • Problem with HP PhotoSmart C4599

    I used to have WEP as wifi security, but I just change it to WPA2-PSK [AES], and the printer won't never show up in network whatever I did. I tried to uninstalled everything related to Hp software and reinstall, but its still not there in network con

  • Read Out Loud Not working in Adobe Reader XI

    Read Out Loud is not working.  I have selected the the Microsoft Anna voice in preferences. I have selected the recommended "infer order from doc".  I am at a loss to know why it does not work.  I am using MS Office Professional 2013.  Please help if

  • Hyperion System 9.3 migration

    Can anybody point me to in the right direction of information regarding Hyperion System 9.3 migration procedures? We are right now having difficulties to migrate our apps from dev to a qa environment. Migration is on the same server/s Thanks, Pat

  • ECC 6.0 installation on top of Netweaver 7.0 server?

    Hi All,     We have installed Netweaver 7.0 and configured BW, we need HR component so on top of this netweaver server is it possible to install the ECC 6.0. In this case,  not the two seperate instances(and not the MCOD). If  it is possible...let me

  • Safari 4.1 using OSX 10.4.11 crashes constantly and is sllllloooooow!

    Safari 4.1 using OSX 10.4.11 crashes constantly and is sllllloooooow! Can anyone help me?? I know this question is all over the place, but anything I have tried does not fix the problem.