I am facing problem setting up java path while installing mysql database in my ubuntu PC. The procedure shows the following and i hav no idea for setting the java path
Error: /usr/lib/jvm/java-1.7.0-openjdk-amd64/bin/java not found or not a valid JDK
Type the full pathname of a JDK installation (or Ctrl-C to quit), the path will be stored in /home/devkrishna/.sqldeveloper/4.1.0/product.conf
/usr/lib/jvm/java-1.8.0-openjdk-amd64
Error: Java home /usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/java is not a JDK.
Running SQL Developer under a JRE is not supported.
If this Java VM is actually a full JDK installation, add
'SetSkipJ2SDKCheck true' to one of the following files.
Otherwise specify a different Java JDK location with a
SetJavaHome directive in one of the following files:
/home/devkrishna/.sqldeveloper/4.1.0/product.conf
/opt/sqldeveloper/sqldeveloper/bin/sqldeveloper.conf
Open terminal (Ctrl+Alt+t)
Type
sudo gedit .bashrc
Enter password of ubuntu user
Go to last line of the file
Type below code in new line
export JAVA_HOME=enter_java_path_here
export PATH=$JAVA_HOME/bin:$PATH
eg: export JAVA_HOME=/home/pranav/jdk1.8.0_131
export PATH=$JAVA_HOME/bin:$PATH
Save the file
Type
source ~/.bashrc
in terminal
Done
The first error looks like you don't have openjdk-7 for some reason it looks like it is also looking for openjdk-8. Install at-least one of them with :
sudo apt-get install openjdk-7-jdk
and/or
sudo apt-get install openjdk-8-jdk
Related
I've installed eth brownie with the command pip install eth-brownie but when ever I type brownie, it says
The term 'brownie' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1
I had this problem also, when running "pip install eth-brownie" in the command line, I was given a warning that said
C:\Users\my_username\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts
is not on the PATH.
You could try running pip uninstall eth-brownie and re-installing pip install eth-brownie to see which file you need to add to PATH.
Copy the file path it gives (should look similar to what I posted above)
To add this to path (on windows 10) type advanced system settings into the search bar, click view advanced systems settings, a window that says "system properties" should pop up, click environment variables..., in the next window that pops up (titled environment variables) click on path then click edit, a new window will pop up titled edit environment variable click new then paste the file path into a new line. Click ok and close all of your programs (if you don't close/restart your programs they will not be aware of the change).
When you open your IDE (visual studio code in my case) you should be able to run brownie by typing brownie
This at least causes a temp recognition of "Brownie":
$env:Path += ";C:\Users\<< username >>\.local\pipx\venvs\eth-brownie\Scripts"
This path will display too if you try to reinstall Brownie. Then add it to PATH variables.
I got zsh not recognize brownie command error, so i add the brownie executable into my PATH in .zshrc worked:
export PATH="/Users/{your_user_name}/.local/pipx/venvs/eth-brownie/bin:$PATH"
Not sure if this works for you.
The following steps worked for me on Mac OS.
step1: uninstall eth-brownie "pip uninstall eth-brownie"
step2: re-install "pip install eth-brownie"
step3: Quit VS Code and Open the project again.
using 'pip install eth-brownie' instead of 'pipx install eth-brownie' solved the problem for me.
I faced the same problem 6 months ago. The issue was with the Python paths in System Environment Variables. I had installed a 3.10 version of python however, pip and pipx was still installing packages in the path of 3.09. You can verify if you are facing the same problem:
Hit Windows button and search for "Advanced System Settings"
Hit Environment Variables to see the Path field
If you see multiple paths of python versions, then that is a possible problem
What you need to do then is
uninstall eth-brownie "pip uninstall eth-brownie"
come back to the Path field in Advanced System Settings
Remove any redundant paths by hitting the edit button
Run pipx install eth-brownie (using pipx is recommended over pip)
step2: re-install "pip install eth-brownie"
I'm starting a project where im going to use AngularJS, NodeJS and MySQL. This is my first real web application, and it's also the first time im using npm.
I've installed Node from their official website, and when i write npm install the node_modules comes to the project directory.
The problem occurs if I try to use any of the installed npm_modules. I tried to download mysql, and the installation worked, but when i type mysql -p i get: "bash: mysql: command not found"
I've also tried to install it with npm install mysql -g, but it still doesn't work.
If it means anything my $PATH is /usr/local/git/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/local/bin
The mysql npm package contains just the nodejs client library for mysql. You need to install the mysql server separately using the appropriate method for your OS.
it looks like you have not installed mysql on your system.
install mysql server using the following command
sudo apt-get install mysql-server
I am using ubuntu 16.04, and my java is in /usr/bin/java
and jdk is in /usr/lib/jvm/java-8-openjdk-amd64 . non of these had the javapackager inside.
I am not able to use javapackager command and do not know how to configure it to use in command-line.
Can anyone help me?
Thanks.
It seems javapackager comes with a package called openjfx,
so running apt install openjfx should make the tool available for you, among your other java tools.
$ apt-file search javapackager
openjfx: /usr/lib/jvm/java-8-openjdk-amd64/bin/javapackager
openjfx: /usr/lib/jvm/java-8-openjdk-amd64/man/ja_JP.UTF-8/man1/javapackager.1.gz
openjfx: /usr/lib/jvm/java-8-openjdk-amd64/man/man1/javapackager.1.gz
You should define your java path.
You can set your JAVA_HOME in /etc/profile as Petronilla Escarabajo suggests. But the preferred location for JAVA_HOME or any system variable is /etc/environment.
Open /etc/environment in any text editor like nano or gedit and add the following
JAVA_HOME="/usr/lib/jvm/open-jdk" (java path could be different)
Use source to load the variables, by running this command:
source /etc/environment
Then check the variable, by running this command:
echo $JAVA_HOME
I'm trying to install Pygame for python 3.5 32bit. I have learned that I can open the .whl files provided on the site by using the pip command. The problem is I've tried multiple ways doing this but with constant error.
python -m pip install pygame-1.9.2a0-cp35-none-win32.whl
'python' is not recognized as an internal or external command,
operable program or batch file.
The file I'm trying to install: pygame-1.9.2a0-cp35-none-win32.whl
My python program is located in my programs folder and everything else works fine.
You need to add python.exe to your Windows PATH variable.
The is the system variable that the operating system uses to locate the needed executables from the command line or Terminal windows. [1]
Actually there are many methods to set the PATH variable on windows. One way is to type
set PATH=%PATH%;location path of Python.exe
into the windows command-line interpreter (cmd):
set PATH=%PATH%;C:\Python35-32
Now -- before running the pip command -- you need to make sure that either
your working directory is set to the same folder where your pygame-1. ... in32.whl file is located
or
you supply the full absolute or relative path to the pip command.
Now you should be able to run your python -m pip command after restarting the cmd.exe.
if you get trouble when install pygame error about missing visual studio 10+. I have the answer: the problem is not about have or not have visual studio, because I try many version but it not work. The problem is file: between tar.gz and .whl so, this is the solution:
1) download file:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame go here and download your pygame version, notice about x64 or x86 and python version. my system is x64 and python is 3.4 so I choose: pygame-1.9.2a0-cp34-none-win_amd64.whl
2) put it in some where to install:
I put it in "C:", so open cmd: and type: cd C:\ (this changes the location to C:)
3) install
pip install C:\pygame-1.9.2a0-cp34-none-win_amd64.whl
done !
I installed mysql using apt-get on my local machine recently.
It proceeded with the default my.cnf.
I would like to see what are the compile time configurations of this binary.
Can some one help me how can i do this?
install mysql-server source.
apt-get source mysql-server # root access not needed
This will create some archive files in the current directory. In my debian lenny it creates the following directories. In your Ubuntu it'll be almost same.
mysql-dfsg-5.0-5.0.51a
mysql-dfsg-5.0_5.0.51a-24+lenny5.diff.gz
mysql-dfsg-5.0_5.0.51a-24+lenny5.dsc
mysql-dfsg-5.0_5.0.51a.orig.tar.gz
Now inspect the debian/rules file in extracted source. I did it by this,
less mysql-dfsg-5.0-5.0.51a/debian/rules
You can use other editor (nano, vi, gedit all are okay). Arround line 68 you'll see the configuration option
To know more about how to recompile a debian source package, read
Howto recompile debian packages
Compiling Debian or Ubuntu Source Packages
Try to use this:
shell> mysql_config
grep CONFIG $(which mysqlbug)
Source