An install4j app on centOS without GUI is installed on /usr/local - centos7

On CentOS7 without GUI, when trying to install an install4J app, it uses the install folder "/usr/local" and I see in logs that sys.installationDir equals "/usr/local"
On other distro (debian), it seems equals to "/opt"
However if I use a CentOS with a GUI, it chooses the "/opt" folder
Do you know why?
Thanks in advance
Cheers
Edit: I'm using install4j 7.0.10

If it exists, the installer prefers /opt to /user/local for the standard installation directory.

Related

Where are source code of superset when I install it in virtual environment?

I have been struggling to find the source code of superset package when I install it in virtual environment. I followed superset installation guide and then proceeded via virtual env.
Here are my virtual environment files:
I thought it will be in site-packages and so I navigated there also but found this (for both lib and lib64 folder):
Similarly for lib64:
Unlike the github file, there's no superset-frontend for customization as well. Does anyone know where can we locate these superset files?
You probably have the compiled version, a binary file, as follows: venv/bin/superset. So when you use superset, it runs an optimized executable. The source files are at venv/lib/python3.6/site-packages/superset/. The pip install apache-superset route is a quick out-of-the-box version of the install, it's not meant for customizing, so you'll change stuff but you won't see it reflected.
If you want to customize superset you have to clone the github repo and follow these instructions for installation, which involve installing superset in editable mode! They explain how to install and run the frontend for dev work too. Don't skip the OS Dependencies part, I did the first time I installed it and you'll waste time at the long run!
If you are sure it was installed in a virtual environment it should be under envs/env/lib/python3.6/site-packages/superset. If it doesn't exist there then it was installed in another location, please check and confirm

Where is StarCluster Installed on MacOS

I installed "StarCluster" using the terminal on my MacOs by following instructions from the link provided below. Now, I need to edit the configuration file to add my AWS credentials. However, I am not sure which folder "StarCluster" is installed on my hard drive. Does anyone know how to locate the folder ? I would appreciate your help.
http://star.mit.edu/cluster/docs/latest/installation.html
According to the easy-install docs:
By default, packages are installed to the running Python installation's site-packages directory, unless you provide the -d or --install-dir option to specify an alternative directory, or specify an alternate location using distutils configuration files.
Here's a guide to finding your site-packages directory.

Apache Superset - Unable to find superset folder in Ubuntu

I have a problem where I couldn't find superset installation folder after I installed superset from this link https://superset.incubator.apache.org/installation.html
Where is the folder?
I installed Superset in the Anaconda base environment (on Ubuntu). The install files are in:
~/anaconda3/lib/python3.7/site-packages/superset
This of course depends on the location of your Anaconda installation. So it would be:
~/anaconda_installation_location/lib/python3.7/site-packages/superset
I installed the Apache Superset using python and the virtualenv. For me, I found the superset files in :
/usr/local/lib/python3.4/dist-packages/superset/
Also, the frontend assets were found in :
/usr/local/lib/python3.4/dist-packages/superset/static/assets/src/
I hope this helps.
In addition to the other answers, here's the path on Windows you can find superset at -
C:\Users\<username>\AppData\Local\Programs\Python\Python39\Lib\site-packages\superset

How to download a file with MSYS?

I would like to download a script from a vanilla MSYS environment.
On Linux, I would do
wget <url>
On Mac OS X, I would do
curl -O <url>
Unfortunately, neither of these alternatives appear to be available in a default installation of MSYS. I have also tried using the LPW::Simple module in Perl, but that also seems to not come installed by default.
Are there any tools that come with a default MSYS environment that can be used to accomplish this?
I could always tell the end-user to download the file themselves, but that defeats the goal of having everything "just work" with a minimal need for installing additional software.
There is an MSYS wget package, but it doesn't seem to be installed by default. If you are willing to modify the MSYS environment, your script can do:
mingw-get install msys-wget-bin

Problems installing django-1.0.2 on Windows XP

I'm a Windows user. I tried to install django-1.0.2 final through the command prompt and it kept giving me an error in line 70:
The error occured where u"SVN"... It couldn't get past that line.
What to do in order to be able to install django-1.0.2?
You do not have SubVersion installed on your machine. You are trying to synchronize from the current production stream via SubVersion, which is a source control system, which you do not have installed.
Easiest solution - download the latest official version per the instructions at http://www.djangoproject.com/download/
Please install a client for the Subversion Version Control System. Since you are on Windows, you can also use TortoiseSVN which is an easy to use SVN client for Windows.
Alternately, you can download the tarball of Django 1.0.2 directly.
And please don't SHOUT on Internet forums. We hear you :)
If I recall correctly, installing TortoiseSVN won't help you there cause Django's code tries to use SVN's command line version.
Install a command-line SVN like:
Slik SVN
CollabNet SVN Command line
What version of python are you using? I had the same error when installing on top of python 3.2 instead of 2.7. Django only works with 2.7.
http://docs.djangoproject.com/en/1.2/faq/install/#can-i-use-django-with-python-3