/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.

Similar Messages

  • PHP & ImageMagick & /opt/local/bin

    hi
    I have been looking for hours and can't find a solution that works to this.
    From the command line I can use ImageMagicks "convert image.jpg image.gif" command for example, but when I try to include it as an exec command inside a php script it says "convert: command not found".
    To make it work I need to specify the /opt/local/bin/convert full path to "convert".
    I have added the path to my PATH env, but it still doesn't get picked up by Apache and PHP and work.
    Can anyone help me with this one?
    Thanks, Regan.
    Message was edited by: regan y

    I've been all over the internet trying to find a solution to this problem -- this post is the closest thing I've found to a solution, but I'm still not quite there. What I'm trying to do is process a .tex document into a .dvi file which in turn gets converted to postscript (.ps) document. The last step is to use imagemagick's "convert" to transform the .ps file into a .png file and I'm done. I'm calling everything from PHP.
    When I originally tried it, I didn't include the full paths -- everything worked, except the "convert" program. After poking around on the 'net (and reading this suggested solution), I included the full paths (see below). Again -- everything works, except the last "convert" step.
    # Process .tex document into .dvi file:
    /usr/local/texlive/2008/bin/universal-darwin/latex myLatex.tex
    # Convert .dvi file into .ps document:
    /usr/local/texlive/2008/bin/universal-darwin/dvips -E myLatex.dvi -o myLatex.ps
    # Last (frustrating!) step: convert .ps document into .png image:
    /usr/local/bin/convert myLatex.ps myLatex.png
    It works great in Terminal, so I wrote it up as a tcsh shell script. The shell script does what it should from Terminal but when called from PHP, it only executes the first two programs (latex and dvips) but not convert. I can't seem to locate any log files to troubleshoot this further.
    Any and all ideas welcome. Why does LaTeX work but not convert? Why does dvips work but not convert? Thanks in advance !

  • Compilation error, no  /opt/SUNWspro/bin/cc on Solaris 10 64bit(x86)

    I was trying to compile Apache mod_jk on Solaris 10 64bit platform(x86) and I got the following error. I checked my system and I do not have /opt/SUNWspro/bin/cc. Any suggestions how to solve it?
    root@unknown >./configure --with-apxs=/usr/apache2/bin/apxs
    building connector for "apache-2.0"
    checking for gcc... /opt/SUNWspro/bin/cc
    checking for C compiler default output file name... configure: error: C compiler cannot create executables
    See `config.log' for more details.
    Edited by: loveclaire on Aug 5, 2009 8:26 PM

    SUNWspro is sun studio. Its a free download from the sun site. So you could just install that.
    Alternatively, Solaris ships with gcc already installed. But apxs is trying to be clever and compile mod_jk with the same compiler that was used to compile the rest of apache.
    It would probably work with gcc, but I'm not sure how you would persuade apxs to use gcc instead.

  • Need explanation output command "/opt/SUNWexplo/bin/explorer"

    Dear IT Experts,
    I run Explorer in solaris 8, by executing command "/opt/SUNWexplo/bin/explorer".
    From this command, I got a tar file and a directory.
    If I do not make mistake, I think that the directory contain of system configuration.
    But, I am confused to check it one by one.
    Could anybody tell me what the important things should I Check from the Explorer output?
    So I can make sure that there is no problem in my system.
    Please help..thanks for any suggestion.
    Regards,
    Ferianto

    You would typically check entries in /var/adm/messages as a start. Look mainly for any error messages in that log file.
    Check out the output of :
    /usr/platform/sun4u/sbin/prtdiag -vThis will tell you whether there are warning lights on, failed PSUs, etc.
    Note that for the newer systems such as T2000 servers, the architecture has changed to "sun4v" so it's better to run uname -m :
    /usr/platform/`uname -m`/sbin/prtdiag -vIf you have a multi-NIC setup, check status of each NIC (ifconfig -a) and any errors on the network (netstat -i).
    Check for disk errors using "iostat -En".
    I'm sure others will be volunteering other checks.
    Cheers,
    Erick Ramirez
    Melbourne, Australia

  • Hi i need to send bug to fix it  from /opt/SUNWexplo/bin/explorer

    Hi i need to send bug to fix it from /opt/SUNWexplo/bin/explorer ...simply executing the command will generate any files anywhere in the server..or it will give the output in the screen only ..i need to send the output of the command ..help me plz

    Public InfoDoc 203335 is the README for Sun's Explorer.
    [http://sunsolve.sun.com/search/document.do?assetkey=1-9-82329-1|http://sunsolve.sun.com/search/document.do?assetkey=1-9-82329-1]
    That document clearly states that any communication about that software tool needs to go to the email alias that is provided in that InfoDoc.
    All other communications to anywhere else (such as to this forum) will be ignored.
    Though if you had read the Explorer FAQ or its User Guide, you would have your answer as to where the output files might be. The FAQ and the U.G. are also linked in the README InfoDoc.

  • How do i fix this sudo: /opt/local/etc/sudoers is owned by uid 501, should be 0

    sudo is broken

    With the following commands from Single User mode:
    mount -uw /
    chown root /opt/local/etc/sudoers
    or from the DVD:
    chown root /Volumes/Macintosh\ HD/opt/local/etc/sudoers
    assuming Macintosh HD is the drive's name.
    (58851)

  • AM Session Failover - /opt/SUNWam/bin/amsfo stop not working

    Hi,
    I have configured AM session failover. I have verified that server is listening on 7777. However as soon I try to stop smsfo, it is giving error.
    root@fe1 # /opt/SUNWam/bin/amsfo stop
    /opt/SUNWam/bin/amsfo: fe1.test.com:7777,fe2.test.com:7777: not found
    root@fe1 #
    Is it a configuration error?
    Any inputs are really appriciated.
    Thanks and Regards,
    Shashank
    Edited by: shashankj on Jul 7, 2008 9:03 AM

    looks like the script is trying to execute your hostnames as a command. Be sure to properly enclose all the script values in quotations (""). Also add set -x to the script for further troubleshooting

  • How can I get a local path of the local disk with swf

    Since FileReference.download() doesn't download multiple
    files, I want to download files with php ftp_get by FTP.
    I need to pass the local path of the local disk where I can
    download the files from a remote serveur. How can I get a prompt to
    have a user choose a folder on his computor (local disk), if any
    way possible?

    OK, at least 3 is working.
    I don't know how you have a Tape Recorder icon on your Home Screen. I cannot add one myself. But, I am running Holo Launcher in replacement of the default LG "Optimus" User Interface. It's much better in my opinion.
    Try long pressing the icon and select Edit and maybe you can change some attribute of the icon.
    Another thing you could do, is long-press an empty area of your desktop, to add an icon. Select Shortcut, then Select Contact, and scroll through your contact list and choose the contact that you added for *86.
    You realize if you have voice mail you haven't heard, there is a tape recorder icon in the notification bar, which you touch and pull down, then press it to dial voicemail.
    If that functionality doesn't work, you MIGHT want to consider doing a factory data reset on your device, but that is going to nuke all your personalizations and cause you work to set up again.

  • Java Local Cache Outperformed C++ Local Cache in 3.6.1

    Currently I'm using same local cache configuration to publish 10000 record of a portable object and retrieve same item few times from both Java and c++ client with oracle coherence 3.6.1 version. I'm using linux x86 version for both java and c++.
    Results from Java : 3 Micro Seconds (best Case), 4-5 Micro Seconds (Average Case)
    Results from C++ : 7 Micro Seconds, 8-9 Mirco Seconds (Average Case)
    When we have local cache for both Java and C++ data retrival latency ideally should be same. But I was able to witness 4 Mirco Second lagging in c++. Is there any sort of c++ configuration which I can improve the perfromance to reach at least 4-5 Micro Seconds.
    My local cache configuration is as follows.
    <local-scheme>
    <scheme-name>local-example</scheme-name>
    </local-scheme>
    So in underneath coherence implementation it uses Safe HashMap as the default (As the documentation). Please let me know if i'm doing something wrong?

    Hi Dave,
    I have append my c++ sample code for reference.
    -------------- Main class -------------------
    #include "coherence/lang.ns"
    #include "coherence/net/CacheFactory.hpp"
    #include "coherence/net/NamedCache.hpp"
    #include <ace/High_Res_Timer.h>
    #include <ace/Sched_Params.h>
    #include "Order.hpp"
    #include "Tokenizer.h"
    #include <iostream>
    #include <sstream>
    #include <string>
    #include <fstream>
    using namespace coherence::lang;
    using coherence::net::CacheFactory;
    using coherence::net::NamedCache;
    Order::View readOrder(String::View);
    void createCache(std::string, NamedCache::Handle&, std::string, std::string&, std::string, std::string);
    void readCache(NamedCache::Handle&, std::string, std::string&, std::string, std::string, std::string);
    static int globalOrderIndex = 1;
    int main(int argc, char** argv) {
    try {
    String::View vsCacheName;
    std::string input;
    std::ifstream infile;
    std::string comment = "#";
    infile.open("test-data.txt");
    size_t found;
    std::string result;
    while (!infile.eof()) {
    getline(infile, input);
    if (input.empty())
    continue;
    found = input.rfind(comment);
    if (found != std::string::npos)
    continue;
    Tokenizer str(input);
    std::vector<std::string> tokens = str.split();
    vsCacheName = tokens.at(0);
    NamedCache::Handle hCache = CacheFactory::getCache(vsCacheName);
    std::string itemCountList = tokens.at(1);
    std::string searchCount = tokens.at(2);
    std::string skipFirst = tokens.at(3);
    std::string searchValue = tokens.at(4);
    Tokenizer str1(itemCountList);
    str1.setDelimiter(",");
    std::vector<std::string> tokens1 = str1.split();
    for (int x = 0; x < tokens1.size(); x++) {
    std::string count = tokens1.at(x);
    std::string result;
    createCache(count, hCache, searchCount, result, vsCacheName, skipFirst);
    sleep(1);
    readCache(hCache, searchCount, result, skipFirst, count, searchValue);
    std::cout << result << std::endl;
    infile.close();
    } catch (const std::exception& e) {
    std::cerr << e.what() << std::endl;
    Order::View readOrder(String::View aotag) { 
    globalOrderIndex++;
    return Order::create(aotag);
    void createCache(std::string count, NamedCache::Handle& hCache, std::string searchIndex,
    std::string& result, std::string cacheName, std::string skipValue) {
    int totalRounds = atoi(count.c_str());
    int search = atoi(searchIndex.c_str());
    int skipFirstData = atoi(skipValue.c_str());
    bool skipFirst = skipFirstData == 1 ? true : false;
    int loop_count = skipFirstData == 1 ? search + 1 : search;
    if (totalRounds == 0)
    return;
    ACE_hrtime_t average(0);
    ACE_High_Res_Timer* tm = new ACE_High_Res_Timer();
    ACE_hrtime_t nstime(0);
    for (int x = 0; x <1; x++) {
    tm->start();
    for (int y = 0; y < totalRounds; y++) {
    std::stringstream out;
    out << globalOrderIndex;
    String::View aotag = out.str();
    Order::View order = readOrder(aotag);
    hCache->put(aotag, order);
    tm->stop();
    tm->elapsed_time(nstime);
    sleep(1);
    if (x > 0 || !skipFirst) // skipping first write because it is an odd result
    average += nstime;
    tm->reset();
    delete tm;
    double totalTimetoAdd = average / (1 * 1000);
    double averageOneItemAddTime = (average / (1 * totalRounds * 1000));
    std::stringstream out;
    out << totalTimetoAdd;
    std::string timeToAddAll = out.str();
    std::stringstream out1;
    out1 << averageOneItemAddTime;
    std::string timetoAddOne = out1.str();
    result.append("------------- Test ");
    result += cacheName;
    result += " with ";
    result += count;
    result += " -------------\n";
    result += "Time taken to publish data: ";
    result += (timeToAddAll);
    result += " us";
    result += "\n";
    result += "Time taken to publish one item: ";
    result += (timetoAddOne);
    result += " us\n";
    void readCache(NamedCache::Handle& hCache, std::string searchCount,
    std::string& result, std::string skipValue, std::string countVal, std::string searchValue) {
    int skipData = atoi(skipValue.c_str());
    bool skipFirst = skipData == 1 ? true : false;
    int count = atoi(countVal.c_str());
    String::View vsName = searchValue.c_str();
    ACE_hrtime_t average(0);
    int search = atoi(searchCount.c_str());
    int loop_count = skipData == 1 ? search + 1 : search;
    ACE_High_Res_Timer* tm = new ACE_High_Res_Timer();
    ACE_hrtime_t nstime(0);
    ACE_hrtime_t best_time(10000000);
    bool isSaturated = true;
    int saturatedValue = 0;
    for (int x = 0; x < loop_count; x++) {
    tm->start();
    Order::View vInfo = cast<Order::View>(hCache->get(vsName));
    tm->stop();
    tm->elapsed_time(nstime);
    if (x>0 || !skipFirst){
    average += nstime;
    if(nstime < best_time) {           
    best_time = nstime;
    if(isSaturated){
    saturatedValue = x+1;
    } else {
    isSaturated = false;
    std::cout << nstime << std::endl;
    vInfo = NULL;
    tm->reset();
    Order::View vInfo = cast<Order::View>(hCache->get(vsName));
    if(vInfo == NULL)
    std::cout << "No info available" << std::endl;
    // if(x%1000==0)
    // sleep(1);
    delete tm;
    double averageRead = (average / (search * 1000));
    double bestRead = ((best_time)/1000);
    std::stringstream out1;
    out1 << averageRead;
    std::string timeToRead = out1.str();
    std::stringstream out2;
    out2 << bestRead;
    std::stringstream out3;
    out3 << saturatedValue;
    result += "Average readtime: ";
    result += (timeToRead);
    result += " us, best time: ";
    result += (out2.str());
    result += " us, saturated index: ";
    result += (out3.str());
    result += " \n";
    ----------------- Order.hpp ---------------
    #ifndef ORDER_INFO_HPP
    #define ORDER_INFO_HPP
    #include "coherence/lang.ns"
    using namespace coherence::lang;
    class Order : public cloneable_spec<Order> {
    // ----- constructors ---------------------------------------------------
    friend class factory<Order>;
    public:
    virtual size_t hashCode() const {
    return size_t(&m_aotag);
    virtual void toStream(std::ostream& out) const {
    out << "Order("
    << "Aotag=" << getAotag()
    << ')';
    virtual bool equals(Object::View that) const {
    if (instanceof<Order::View > (that)) {
    Order::View vThat = cast<Order::View > (that);
    return Object::equals(getAotag(), vThat->getAotag())
    return false;
    protected:
    Order(String::View aotag) : m_aotag(self(), aotag) {}
    Order(const Order& that) : super(that), m_aotag(self(), that.m_aotag) {}
    // ----- accessors ------------------------------------------------------
    public:
    virtual String::View getAotag() const {
    return m_aotag;
    // ----- data members ---------------------------------------------------
    private:
    const MemberView<String> m_aotag;
    #endif // ORDER_INFO_HPP
    ----------- OrderSerializer.cpp -------------
    #include "coherence/lang.ns"
    #include "coherence/io/pof/PofReader.hpp"
    #include "coherence/io/pof/PofWriter.hpp"
    #include "coherence/io/pof/SystemPofContext.hpp"
    #include "coherence/io/pof/PofSerializer.hpp"
    #include "Order.hpp"
    using namespace coherence::lang;
    using coherence::io::pof::PofReader;
    using coherence::io::pof::PofWriter;
    using coherence::io::pof::PofSerializer;
    class OrderSerializer: public class_spec<OrderSerializer,extends<Object>,implements<PofSerializer> > {
    friend class factory<OrderSerializer>;
    protected:
    OrderSerializer(){
    public: // PofSerializer interface
    virtual void serialize(PofWriter::Handle hOut, Object::View v) const {
    Order::View order = cast<Order::View > (v);
    hOut->writeString(0, order->getAotag());
    hOut->writeRemainder(NULL);
    virtual Object::Holder deserialize(PofReader::Handle hIn) const {
    String::View aotag = hIn->readString(0);
    hIn->readRemainder();
    return Order::create(aotag);
    COH_REGISTER_POF_SERIALIZER(1001, TypedBarrenClass<Order>::create(), OrderSerializer::create());
    -----------------Tokenizer.h--------
    #ifndef TOKENIZER_H
    #define TOKENIZER_H
    #include <string>
    #include <vector>
    // default delimiter string (space, tab, newline, carriage return, form feed)
    const std::string DEFAULT_DELIMITER = " \t\v\n\r\f";
    class Tokenizer
    public:
    // ctor/dtor
    Tokenizer();
    Tokenizer(const std::string& str, const std::string& delimiter=DEFAULT_DELIMITER);
    ~Tokenizer();
    // set string and delimiter
    void set(const std::string& str, const std::string& delimiter=DEFAULT_DELIMITER);
    void setString(const std::string& str); // set source string only
    void setDelimiter(const std::string& delimiter); // set delimiter string only
    std::string next(); // return the next token, return "" if it ends
    std::vector<std::string> split(); // return array of tokens from current cursor
    protected:
    private:
    void skipDelimiter(); // ignore leading delimiters
    bool isDelimiter(char c); // check if the current char is delimiter
    std::string buffer; // input string
    std::string token; // output string
    std::string delimiter; // delimiter string
    std::string::const_iterator currPos; // string iterator pointing the current position
    #endif // TOKENIZER_H
    --------------- Tokenizer.cpp -------------
    #include "Tokenizer.h"
    Tokenizer::Tokenizer() : buffer(""), token(""), delimiter(DEFAULT_DELIMITER)
    currPos = buffer.begin();
    Tokenizer::Tokenizer(const std::string& str, const std::string& delimiter) : buffer(str), token(""), delimiter(delimiter)
    currPos = buffer.begin();
    Tokenizer::~Tokenizer()
    void Tokenizer::set(const std::string& str, const std::string& delimiter)
    this->buffer = str;
    this->delimiter = delimiter;
    this->currPos = buffer.begin();
    void Tokenizer::setString(const std::string& str)
    this->buffer = str;
    this->currPos = buffer.begin();
    void Tokenizer::setDelimiter(const std::string& delimiter)
    this->delimiter = delimiter;
    this->currPos = buffer.begin();
    std::string Tokenizer::next()
    if(buffer.size() <= 0) return ""; // skip if buffer is empty
    token.clear(); // reset token string
    this->skipDelimiter(); // skip leading delimiters
    // append each char to token string until it meets delimiter
    while(currPos != buffer.end() && !isDelimiter(*currPos))
    token += *currPos;
    ++currPos;
    return token;
    void Tokenizer::skipDelimiter()
    while(currPos != buffer.end() && isDelimiter(*currPos))
    ++currPos;
    bool Tokenizer::isDelimiter(char c)
    return (delimiter.find(c) != std::string::npos);
    std::vector<std::string> Tokenizer::split()
    std::vector<std::string> tokens;
    std::string token;
    while((token = this->next()) != "")
    tokens.push_back(token);
    return tokens;
    I'm really concerned about the performance. 1 Micro seconds is very much valuable for me. If you could reduce it to 5 micro seconds then it would be a great help for me. I'm building above code by following release arguments.
    "g++ -Wall -ansi -m32 -O3"
    Following file is my test script
    ------------ test-data.txt ---------------
    #cache type - data load - read attempts - skip first - read value
    local-orders 10000 5 1 1
    # dist-extend 1,100,10000 5 1 1
    # repl-extend 1,100,10000 5 1 1
    You can uncomment one by one and test different caches with different loads.
    Thanks for the reply
    sura
    Edited by: sura on 23-Jun-2011 18:49
    Edited by: sura on 23-Jun-2011 19:35
    Edited by: sura on 23-Jun-2011 19:53

  • Every time i wake my mac i get This computer's local hostname "D-360.local" is already in use on this network. The name has been changed to "D-444.local".

    error message that my local host name is in use and the system generates a new one every time I wake my mac the error mssg reads This computer’s local hostname “D-360.local” is already in use on this network. The name has been changed to “D-444.local”.

    There are several possible causes for this behavior.
    1. Two (or more) computers on the local network have the same Bonjour name, such as "X's-MacBook-Pro.local". Resolve the name conflict by renaming one or more of them in the Sharing preference pane.
    2. You have two simultaneous connections to the same local network: probably Ethernet and Wi-Fi. If applicable, disconnect the Ethernet cable or turn off Wi-Fi.
    3. A Mac wakes from sleep due to network traffic. This is a bug in OS X that may only affect some models.
    4. A device that gets its network address from the router wakes from sleep, and the address it was using before has been assigned to another device.
    5. A third-party wireless router has incompatible settings or firmware. In that case, refer to the manufacturer or ISP for support. Restarting the router may help, temporarily.
    6. See also this support article.

  • I get this message:This computer's local hostname "x-8.local" is already in use on this network. The name has been changed to "x-9.local" I have turned off sharing and it continues to upgrade name. What is the fix?

    I get this message: This computer’s local hostname “x-8.local” is already in use on this network. The name has been changed to “x-9.local” I have turned off sharing and it continues to upgrade name. What is the fix?

    Hi, this is a common problem, mostly just irksome though.
    It can have many cause, like using more than one Interface for connections, Router temporarily losing x.local & seeing a new connection with x.local already used, insists it must be x-1.local, x-2.local, etc..
    What all Sharing do you have enabled?
    Some possible fixes...
    http://forums.macrumors.com/showthread.php?t=542899
    https://discussions.apple.com/thread/3941367

  • Desactivar la Opcion Datos Locales del ajustar dispos.Local (ALT+F12).

    Buenas Tardes.
    Saludos.
    Por favor alguien conoce, como se puede realizar la desactivación de la Opción Datos Locales del botón de Menú ajustar dispos.Local (ALTF12) o Customize Local Layout (ALTF12). Se requiere desactivar esta opcion para que los usuarios no puedan cambiar las políticas de historial de los Log del Sapgui y tampoco puedan borrar el Historial del Log, el mismo se Almacenan en ¨ C:UsersUsuario- DefinidoSapWorkDir¨.
    Muchas Gracias.

  • Cannot set locale (ignored from /etc/locale.conf)

    I just installed Arch on my new machine and I wrote:
    ==> /etc/locale.conf
    LANG=es_CL.utf-8
    # LANG=es_CL.UTF-8 (I've tried with both).
    after uncommenting it on /etc/locale.gen and running # locale-gen
    (I basically followed every step in the wiki).
    No matter what I do when I start any terminal, I found the locale commands output:
    $ ~ locale
    LANG=
    LC_CTYPE="POSIX
    LC_NUMERIC="POSIX"
    LC_TIME="POSIX"
    LC_COLLATE="POSIX"
    LC_MONETARY="POSIX"
    LC_MESSAGES="POSIX"
    LC_PAPER="POSIX"
    LC_NAME="POSIX"
    LC_ADDRESS="POSIX"
    LC_TELEPHONE="POSIX"
    LC_MEASUREMENT="POSIX"
    LC_IDENTIFICATION="POSIX"
    LC_ALL=
    I found that if I open a tty, the /etc/profile.d/locale.sh is ran so, the locales are correct and locale shows the correct output.
    The weirdest thing is that my old machine doesn't load locale.sh, and still the locale it's right.
    I've search a lot through the wiki and bbs and even when there are couple of articles, none of them help me to solve this issue :(.
    I'm running my session through systemd --user (in case it means anything).
    EDIT: Add more info.
    EDIT2: Fix typo
    Last edited by pablox (2013-03-25 13:19:42)

    WorMzy wrote:
    Looks like it is, I removed it from my .zshrc and nothing changed.
    Could you check whether es_CL.UTF-8 is actually listed as an available locale?
    localectl list-locales
    And if so, whether it's correctly set
    localectl status
    $ localectl list-locales
    en_US.utf8
    es_CL.utf8
    $ localectl status
    System Locale: LANG=es_CL.UTF-8
    LC_COLLATE=C
    LC_MESSAGES=C
    VC Keymap: la-latin1
    X11 Layout: n/a
    $ locale
    LANG=
    LC_CTYPE="POSIX"
    LC_NUMERIC="POSIX"
    LC_TIME="POSIX"
    LC_COLLATE="POSIX"
    LC_MONETARY="POSIX"
    LC_MESSAGES="POSIX"
    LC_PAPER="POSIX"
    LC_NAME="POSIX"
    LC_ADDRESS="POSIX"
    LC_TELEPHONE="POSIX"
    LC_MEASUREMENT="POSIX"
    LC_IDENTIFICATION="POSIX"
    LC_ALL=
    $
    Ô_o
    I have removed an empty ~/.zprofile just in case but the issue persist. Running an empty zsh shell (with zsh -f) doesn't work either.
    Last edited by pablox (2013-03-26 23:59:45)

  • JDBC driver 10.2.0.1.0XE & XE - bag with Locale other then ENGLISH locale

    =============
    Lets test java class code:
    import java.util.*;
    import java.sql.*;
    import oracle.jdbc.*;
    import oracle.jdbc.pool.OracleDataSource;
    public class TestDriver {
    public static void main(String[] args) throws SQLException {
    //deadly force: Locale.setDefault(Locale.ENGLISH);
    // but my Locale is RU!
    // see NLS_CHARACTERSET- WE8MSWIN1252 must be WE8MSWIN1251!
    OracleDataSource ods = new OracleDataSource();
    ods.setURL("jdbc:oracle:thin:system/123@localhost:1521/xe");
    Connection conn = ods.getConnection();
    DatabaseMetaData meta = conn.getMetaData();
    System.out.println("JDBC driver version is " + meta.getDriverVersion());
    ==========
    Output result:
    Exception in thread "main" java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
    ORA-12705: Cannot access NLS data files or invalid environment specified
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:283)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:278)
    at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthenticate.java:785)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:376)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:441)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:839)
    at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:389)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:278)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:199)
    at Oracle.Test.TestDriver.main(TestDriver.java:27)
    =================================================================
    Database info:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    National Language Support
    National Language Parametersort by this column Value
    NLS_CALENDAR GREGORIAN
    NLS_CHARACTERSET WE8MSWIN1252
    NLS_COMP BINARY
    NLS_CURRENCY ?.
    NLS_DATE_FORMAT DD.MM.RR
    NLS_DATE_LANGUAGE RUSSIAN
    NLS_DUAL_CURRENCY ?.
    NLS_ISO_CURRENCY RUSSIA
    NLS_LANGUAGE RUSSIAN
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NUMERIC_CHARACTERS ,
    NLS_SORT RUSSIAN
    NLS_TERRITORY RUSSIA
    NLS_TIME_FORMAT HH24:MI:SSXFF
    NLS_TIMESTAMP_FORMAT DD.MM.RR HH24:MI:SSXFF
    NLS_TIMESTAMP_TZ_FORMAT DD.MM.RR HH24:MI:SSXFF TZR
    NLS_TIME_TZ_FORMAT HH24:MI:SSXFF TZR

    Right. I have diagnosed the issue. It is caused by the removal of the "CIS"
    territory from Oracle Database XE. I have logged bug #5114250.
    If you have access to the applicaction source code, try the following workaround:
    boolean workaround = false;
    Locale origLocale = Locale.getDefault();
    if ( origLocale.toString().equals( "ru_RU" ) ) {
    Locale.setDefault( new Locale( "en", "US" ) );
    workaround = true;
    DriverManager.registerDriver( new OracleDriver() );
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:thin:system/manager@//localhost:1522/ORA92.PL.ORACLE.COM"
    System.out.println( "Connected." );
    if ( workaround ) {
    Statement stmt = conn.createStatement();
    String territory = "CIS";
    if ( conn.getMetaData().getDatabaseMajorVersion() >= 10 )
    territory = "RUSSIA";
    stmt.execute(
    "ALTER SESSION SET NLS_LANGUAGE='RUSSIAN' NLS_TERRITORY='"
    + territory +"'" );
    stmt.close();
    System.out.println( "NLS_TERRITORY changed to " + territory );
    Locale.setDefault( origLocale );
    -- Sergiusz

  • Bin folder of local development DC is empty!!

    Hi experts !!
    I am facing a big issue!!
    Yesterday many of my WDJava applications could not be deployed. For some of them after  adding the external jars to LIB folder of the DC i was able to deploy them.
    But for some of them even though i followed the same procedure i cannot deploy them at all.
    I noticed that the bin folder of the DC is empty which is really weird..
    Could this be the problem?
    Any ideas??
    Thank you in advance!!!
    Edited by: Grigoria Koutsogianni on Nov 5, 2008 2:45 PM

    HI,
    First 3 options are not working?
    Generally , project repair works.
    No, not .project file.
    1. First take backup of thr project(zip the project)
    2. Right click on project and click on delete
    3. Popup will appear with two radio buttons: Delete the content , do not delete the content. Select 2nd option
    4. Project will be deleted from NWDS. Now go to development perspective. Select DC, Right click, and click on create project.
    Regards,
    Apurva

Maybe you are looking for