Where is StarCluster Installed on MacOS - amazon-web-services

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.

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

"no such file or directory" while trying to install gcloud commandline tool

OK so I am trying to download gcloud compute but I am unable to for some reason. I followed the step by step guide from this page but when I type ./google-cloud-sdk/bin/gcloud init the terminal returns zsh: no such file or directory: ./google-cloud-sdk/bin/gcloud
Should I move google-cloud-sdk out of download into some other places? Any help will be greatly appreciated.
If it is any help, I am currently using Mac OS catalina 10.15.4.
It looks like you have downloaded the SDK into a different directory than you are currently in with your terminal.
Try moving the downloaded google-cloud-sdk folder into your home (or cd into your Downloads folder with the terminal), and then running the command. You can also use ls to make sure you are in the correct directory and can see the google-cloud-sdk folder.

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

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.

Trouble installing AWS Elastic Beanstalk Command Line tool packages

I'm having trouble installing AWS Elastic Beanstalk command line tool and I don't understand why. I've downloaded the package from AWS and followed the instruction carefully. Following is the installation instruction:
== Installation
Once you have downloaded the CLI package:
1) Unzip this archive to a location of your choosing.
Eb is located in the "eb" directory. The complete CLI reference
for more advanced scenarios can be found in the "api" directory.
To add eb files to your path:
Linux/Mac OS X (Bash shell):
export PATH=$PATH:<path to eb>
Windows:
set PATH=<path to eb>;%PATH%
I'm using Mac OS X so I've used export PATH=$PATH:. For the path to eb, I've just copied the file into the terminal, which resulted export PATH=$PATH:/Users/lydia/Downloads/ElasticBeanstalk/eb/macosx/python2.7/eb. I'm not sure what I'm missing and I can't deploy without downloading eb command line first.
Remove the eb at the end so it's just
/Users/lydia/Downloads/ElasticBeanstalk/eb/macosx/python2.7/
this worked for me although i can only get it to work if i export the CLI into the specific website folder i am working on see my question here https://askubuntu.com/questions/428417/aws-elastic-beanstalk-command-line-tool-setup
Fix that worked for me (if you installed python using brew) is remove python via
brew uninstall --force python
and then install it again from https://www.python.org/downloads/.
Then just follow the instructions from AWS.
You only add directories to your $PATH. Is ~/Downloads/ElasticBeanstalk/eb/macosx/python2.7/eb a directory? Or is it the actual command?

Access to Oracle Database with sqlapi C++

I need to write some data in several database.
I choose sqlapi.com
I have made it for mysql and mssql.
Now I have Problem with Oracle database.
I have installed server and client on Ubuntu.
In browser it works, but sqlapi says:
libnnz10.so: cannot open shared object
file: No such file or directory
DBMS API Library 'libclntsh.so'
loading fails
This library is a part of DBMS client
installation, not SQLAPI++
Make sure DBMS client is installed and
this required library is available for
dynamic loading
Linux/Unix:
1) The directories in the user's
LD_LIBRARY_PATH environment variable
2) The list of libraries cached in
/etc/ld.so.cache
3) /usr/lib, followed by /lib
There are both of these files depp inside /usr/lib.
I have tried a lot of ways to say eclipse path to this folder, but nothing works.
Thanks for help.
I think that you need to set the variable LD_LIBRARY_PATH to the file path of the shared lib.
e.g.
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/oracle/instantclient/lib
set the variable in .profile or .bash_profile. This depends on the shell you are using.
Update
Due to some new security requirements in ubuntu (see https://bugs.launchpad.net/ubuntu/+bug/366728 for details) you cannot use LD_LIBRARY_PATH for non-interactive shells. Use the following procedure (adjust the oracle path to your needs):
echo "/opt/oracle/product/whatever/lib" | sudo tee /etc/ld.so.conf.d/oracle.conf
sudo ldconfig -v