Errors while trying to install Chrome using terminal - google-chrome

I want to use Selenium to scrape some data and I am working in AWS EC2. In order to run Selenium Webdriver with Python on an AWS EC2 Instance, I have to install chrome. So, I tried to run this command in terminal to install chrome:
curl https://intoli.com/install-google-chrome.sh | bash
Then what I am getting is:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9526 100 9526 0 0 930k 0 --:--:-- --:--:-- --:--:-- 930k
Working in /tmp/google-chrome-installation
/tmp/google-chrome-installation /tmp
Configuring the Google Chrome repo in /etc/yum.repos.d/google-chrome.repo
bash: line 17: /etc/yum.repos.d/google-chrome.repo: No such file or directory
bash: line 18: /etc/yum.repos.d/google-chrome.repo: No such file or directory
bash: line 19: /etc/yum.repos.d/google-chrome.repo: No such file or directory
bash: line 20: /etc/yum.repos.d/google-chrome.repo: No such file or directory
bash: line 21: /etc/yum.repos.d/google-chrome.repo: No such file or directory
bash: line 22: /etc/yum.repos.d/google-chrome.repo: No such file or directory
bash: line 26: yum: command not found
--2023-02-06 06:53:47-- https://dl.google.com/linux/linux_signing_key.pub
Resolving dl.google.com (dl.google.com)... 172.253.63.190, 172.253.63.91, 172.253.63.136, ...
Connecting to dl.google.com (dl.google.com)|172.253.63.190|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12415 (12K) [application/octet-stream]
Saving to: ‘linux_signing_key.pub’
linux_signing_key.pub 100%[=============================================================>] 12.12K --.-KB/s in 0s
2023-02-06 06:53:47 (95.4 MB/s) - ‘linux_signing_key.pub’ saved [12415/12415]
bash: line 28: rpm: command not found
Attempting a direction installation with yum.
bash: line 40: yum: command not found
bash: line 54: yum: command not found
Downloading the Google Chrome RPM file.
bash: line 59: yum: command not found
bash: line 63: yumdownloader: command not found
--2023-02-06 06:53:47-- https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
Resolving dl.google.com (dl.google.com)... 172.253.63.190, 172.253.63.91, 172.253.63.136, ...
Connecting to dl.google.com (dl.google.com)|172.253.63.190|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 98165972 (94M) [application/x-rpm]
Saving to: ‘google-chrome-stable_current_x86_64.rpm’
google-chrome-stable_current_x86_ 100%[=============================================================>] 93.62M 418MB/s in 0.2s
2023-02-06 06:53:47 (418 MB/s) - ‘google-chrome-stable_current_x86_64.rpm’ saved [98165972/98165972]
Downloaded google-chrome-stable_current_x86_64.rpm
bash: line 70: rpm: command not found
Installing the required font dependencies.
bash: line 76: yum: command not found
main: line 100: repoquery: command not found
http://: Invalid host name.
Extracting glibc...
main: line 107: rpm2cpio: command not found
main: line 100: repoquery: command not found
http://: Invalid host name.
Extracting util-linux...
main: line 107: rpm2cpio: command not found
main: line 100: repoquery: command not found
http://: Invalid host name.
Extracting libmount...
main: line 107: rpm2cpio: command not found
main: line 100: repoquery: command not found
http://: Invalid host name.
Extracting libblkid...
main: line 107: rpm2cpio: command not found
main: line 100: repoquery: command not found
http://: Invalid host name.
Extracting libuuid...
main: line 107: rpm2cpio: command not found
main: line 100: repoquery: command not found
http://: Invalid host name.
Extracting libselinux...
main: line 107: rpm2cpio: command not found
main: line 100: repoquery: command not found
http://: Invalid host name.
Extracting pcre...
main: line 107: rpm2cpio: command not found
Finding dependency for ldd.sh
main: line 176: repoquery: command not found
Finding dependency for ldd.sh
main: line 176: repoquery: command not found
Finding dependency for ldd.sh
main: line 176: repoquery: command not found
Finding dependency for ldd.sh
main: line 176: repoquery: command not found
Finding dependency for ldd.sh
main: line 176: repoquery: command not found
Finding dependency for ldd.sh
main: line 176: repoquery: command not found
Finding dependency for ldd.sh
main: line 176: repoquery: command not found
And these last 2 lines are repeating infinitely.
What should I do to move on?

Related

Please help me to fix the error - mysqlclient

pip install mysqlclient
Collecting mysqlclient
Using cached mysqlclient-2.1.1.tar.gz (88 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
/bin/sh: 1: mysql_config: not found
/bin/sh: 1: mariadb_config: not found
/bin/sh: 1: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-k_urbzi_/mysqlclient_beba1330b6804b2990fa74f56f11c3f5/setup.py", line 15, in <module>
metadata, options = get_config()
File "/tmp/pip-install-k_urbzi_/mysqlclient_beba1330b6804b2990fa74f56f11c3f5/setup_posix.py", line 70, in get_config
libs = mysql_config("libs")
File "/tmp/pip-install-k_urbzi_/mysqlclient_beba1330b6804b2990fa74f56f11c3f5/setup_posix.py", line 31, in mysql_config
raise OSError("{} not found".format(_mysql_config_path))
OSError: mysql_config not found
mysql_config --version
mariadb_config --version
mysql_config --libs
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Please help me to fix the error.
python -V
Python 3.9.2
pip list
Package Version
pip 22.3
pkg_resources 0.0.0
setuptools 65.5.0
You need to follow the installation instructions for this package.
https://pypi.org/project/mysqlclient/
It sounds like you're on OSX - you will need to install mysql there.
Thanks. problem solved
Linux
Note that this is a basic step. I can not support complete step for build for all environment. If you can see some error, you should fix it by yourself, or ask for support in some user forum. Don't file a issue on the issue tracker.
You may need to install the Python 3 and MySQL development headers and libraries like so:
$ sudo apt-get install python3-dev default-libmysqlclient-dev build-essential
Debian / Ubuntu
$ pip install mysqlclient

while i troubleshoot freeradius server, at ./radiusd.conf, i got an output like this

When i run a file which is in usr/local/etc/raddb/radiusd.conf
can it create any problem??.
"./radiusd.conf" command, i got an error as shown as below:
./radiusd.conf: line 54: prefix: command not found
./radiusd.conf: line 55: exec_prefix: command not found
./radiusd.conf: line 56: sysconfdir: command not found
./radiusd.conf: line 57: localstatedir: command not found
./radiusd.conf: line 58: sbindir: command not found
./radiusd.conf: line 59: logdir: command not found
./radiusd.conf: line 60: raddbdir: command not found
./radiusd.conf: line 61: radacctdir: command not found
./radiusd.conf: line 65: name: command not found
./radiusd.conf: line 68: confdir: command not found
./radiusd.conf: line 69: run_dir: command not found
./radiusd.conf: line 72: db_dir: command not found
./radiusd.conf: line 106: libdir: command not found
./radiusd.conf: line 117: pidfile: command not found
./radiusd.conf: line 219: max_request_time: command not found
./radiusd.conf: line 238: cleanup_delay: command not found
./radiusd.conf: line 257: max_requests: command not found
./radiusd.conf: line 273: listen: command not found
./radiusd.conf: line 287: type: =: not found
./radiusd.conf: line 287: type: auth: not found
./radiusd.conf: line 306: ipaddr: command not found
./radiusd.conf: line 316: port: command not found
./radiusd.conf: line 343: syntax error near unexpected token `}'
./radiusd.conf: line 343: `}'
please help me out of this , i stucked at this bug. Thanks!!!
It's not a bug, radiusd.conf isn't executable, it's meant to be read by the radiusd binary.

Upgraded to Mavericks, now errors with python MySQL DB

How do I install MySQL python through pip?
I recently upgraded to Mavericks and now none of my packages and dependencies are working.
I was successfully able to install pip via python ez_setup.py which i found from here Can't install via pip because of egg_info error
But still keep getting this error.
Downloading MySQL-python-1.2.5.zip (108kB): 108kB downloaded
Running setup.py (path:/private/tmp/pip_build_root/MySQL-python/setup.py) egg_info for package MySQL-python
sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/private/tmp/pip_build_root/MySQL-python/setup.py", line 17, in <module>
metadata, options = get_config()
File "setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 25, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
Complete output from command python setup.py egg_info:
sh: mysql_config: command not found
Traceback (most recent call last):
Command python setup.py egg_info failed with error code 1 in /private/var/folders/xl/lsdkfj09485039845/T/pip_build_Name/mysql-python
Storing debug log for failure in /Users/Name/Library/Logs/pip.log
I also tried running the command line; export path command I found in here.
https://stackoverflow.com/questions/5178292/pip-install-mysql-python-fails-with-environmenterror-mysql-config-not-found
download the shell script found here
http://www.macminivault.com/mysql-mavericks/
copy and paste the contents into as a .sh file i named mine fixeverything.sh
then from terminal run sh fixeverything.sh
then i ran this command to link mysql
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib

Nagios NDOUtils installation - can't load mysql.so error

Hi I m very new to Linux & mysql...while I m installing ndoutils for nagios ,I have to execute this command from Db folder---
./installdb -u root -p root -h localhost -d nagios
while executing this command m getting this error-
install_driver(mysql) failed: Can't load
'/usr/lib/perl5/auto/DBD/mysql/mysql.so' for module DBD::mysql:
libmysqlclient.so.16: cannot open shared object file: No such file or
directory at /usr/lib/perl5/DynaLoader.pm line 200. at (eval 7) line
3 Compilation failed in require at (eval 7) line 3. Perhaps a required
shared library or dll isn't installed where expected at ./installdb
line 41
What should I do to remove this error? Help me
Looks like you need to install DRD::mysql for perl.
http://metacpan.org/pod/DBD::mysql

Trying to install DBD::mysql using macports mysql and perl fails make test [Snow Leopard]

I have recently installed mysql5 and perl5 through macports in order to try and subvert an earlier issue of running perl script architecture discrepancies (introduced as of OSX10.6).
Downloaded the DBD::mysql package and seek to manually install it.
perl Makefile works well, as does make.
make test, however, yields the following:
PERL_DL_NONLAZY=1 /opt/local/bin/perl5 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base....................ok 1/6
# Failed test 'use DBD::mysql;'
# at t/00base.t line 21.
# Tried to use 'DBD::mysql'.
# Error: Can't load '/Users/ianseyer/Downloads/DBD-mysql- 4.011/blib/arch/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/Users/ianseyer/Downloads/DBD-mysql-4.011/blib/arch/auto/DBD/mysql/mysql.bundle, 2): Symbol not found: _is_prefix
# Referenced from: /Users/ianseyer/Downloads/DBD-mysql- 4.011/blib/arch/auto/DBD/mysql/mysql.bundle
# Expected in: dynamic lookup
# at (eval 7) line 2
# Compilation failed in require at (eval 7) line 2.
# BEGIN failed--compilation aborted at (eval 7) line 2.
t/00base....................NOK 2/6FAILED--Further testing stopped: Unable to load DBD::mysql
make: *** [test_dynamic] Error 255
Any ideas? Thanks.
I would start by trying to install the macports version of DBD::mysql:
sudo port install p5-dbd-mysql
If that doesn't work, try cpanm:
cpanm -S DBD::Mysql
Only use manual installation as a last resort.