Hello,
I am trying to install OCI8. I'm pretty sure the last thing I need to do is run the "./configure" command, but no matter where I try to run it, it gives me back a "file not found" or "command not found" error. I have tried this on CentOS and Fedora and always install PHP with yum. I have done many GUI searches looking through the file system for "php" and have tried to run ./configure in every php folder I can find but the command never runs. Any suggestions are very much appreciated. Thanks so much!
-Matt
P.S. Do I even need to do this if I already edited the "php.ini" file and installed OCI8 with PECL? Thanks!
I tried to install bluegriffon. Didn't work with apt-get install (error: unable to locate package bluegriffon).
I installed compiler (with apt-get install build-essential)
then I unpacked the "bluegriffon-1.7.2.Ubuntu13.04.x86_64.tar.bz2" that I downloaded from their website
then I changed to bluegriffon folder with the unpacked files and I tried to compile the package but the "./configure command" did not work (error : -su: ./configu No such file or directory)
What should I do now?
hi people.
can anybody help me to solve this error? "'configure.ac' or 'configure.in' is required" when i run "autoreconf –i"
I have the below URL
http://linoxide.com/ubuntu-how-to/awstats/
in this URL , it have the command "sudo a2enmod cgi" to check the cgi is installed or not , but when I run it , it pops "bash: a2enmod: command not found" , I tried to install it by yum install a2enmod" , but got the below message , would advise how to install it .
Code:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.uhost.hk
* epel: ftp.cuhk.edu.hk
* extras: centos.uhost.hk
* updates: centos.uhost.hk
No package a2enmod available.
Error: Nothing to do
hello everyone.,
i am using linux Centos 6 machine, i have downloaded "back in time" through command line.
but i dont know how to install "back in time" from the command line.
i found some commands but that for UBUNTU and not running on Centos 6, giving error.
so , without GUI. can be possible to install and use it?????
thanks in advance..
Hi all ,
I have a requirement where I have a file. Contents of the file are :
#comments
VAR="abg"
RES=123
#comments
IC6790ABG="https://www.abc.com"
IC5678-vg="https://www.bhy.com"
IC-gy_567:78="https://www.gyt.com"
#comments
The variable names can not have characters like - , : so
in this file I have to find words starting with IC and replace characters like - ,:
I want to change only the variable name , not the whole line.
I have used SED command
sed -i '/^IC/s/[^0-9 a-z A-Z _]*//g' file
when I am using this command , it is replacing the whole line
output becomes :
#comments
VAR="abg"
RES=123
#comments
IC6790ABGhttpswwwabccom
IC5678vghttpswwwbhycom
ICgy56778httpswwwgytcom
#comments
But I want the output like this :
#comments
VAR="abg"
RES=123
#comments
IC6790ABG="https://www.abc.com"
IC5678vg="https://www.bhy.com"
ICgy_56778="https://www.gyt.com"
#comments
How can I get the desired output , thanks for your help in advance .
I have simple c code and I want to make .bin file to run on friendly arm board. In redhat I install cross compile gcc and Use "gcc -o hello hello.c" this command to make object file. when I run this file in friendly arm it give "line 1: syntax error: unexpected "(" "
Thanks
--
Abdul Wahab
I want to And search grep shell
but It's hard to grep variable
---------------------------------------------------------------
#!/bin/bash
if [ $# -eq 0 ]
then
echo "Ussage: phone searchfor [...searchfor]"
echo "(You didn't tell me what you want to search for )"
else
pass=0
find=""
for idx in $*
do
if [ -n "$idx" ]
then
if [ $pass -eq 0 ]
then
find=$(egrep "$idx" mydata)
pass=1
else
find=$("$find" | grep "$idx")
echo $find
fi
fi
done
if [ -z "$find" ]
then
echo "There is no such thing"
else
echo $find | awk -f display.awk
fi
fi
-----------------------------------------------------
there is one error : command not found
in find=$("$find" | grep "$idx")
how can I grep variable and store it into variable?
Hi,
I installed ghostscript via yum package manager. Later I wanted a newer version of ghostscript and compiled it from source. "make install" placed the gs executable file under /usr/local/bin/gs. This works if I run the command with absolute path, but if try to run gs, the shell will output
"-bash: /usr/bin/gs: No such file or directory"
if I echo the path variable it will display
/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin
If i run whereis it will give me the correct path
gs: /usr/local/bin/gs
How do I make it work so that typing "gs" will run the executable file from the /usr/local/bin/gs?
(I am using Centos 6)
Thanks.
I am writing a script to check whether a "sysinfo" is installed in a system or not. sysinfo is a tool that gives information about the system. Its is installed in /usr/local/bin. so at CLI when I type sysinfo, it will display output.
#!/bin/bash
sysinfo=`/usr/local/bin/sysinfo`
echo "$sysinfo"
if [ "$?" = 0 ];then
echo "sysinfo installed"
else
echo "Please install sysinfo"
fi
Concept is, I run the command if it is present, it will show output and exit status of command is 0 else it is not installed. But it is not working as expected. Any thoughts , idea, suggestion.
hello all,
please help me with python ftplib. i was trying to copy files from my linux machine to a windows server using ftplib. everything was working good. but i'm only able to copy files from the same directory the script is. how do i copy files from a different directory? i always get "file not found error message". here's my code :
Code:
tester_name = str (socket.gethostname())
def upload(ftp, file):
ext = os.path.splitext(file)[1]
if ext in (".txt", ".htm", ".html"):
ftp.storlines("STOR " + file, open(file))
else:
ftp.storbinary("STOR " + file, open(file, "rb"), 1024)
parse_source_path = ('/path/to/where/i/go/')
parse_source_file_list = os.listdir(parse_source_path)
ftp = ftplib.FTP("server_IP")
ftp.login("username", "pass")
folder_list = []
ftp.dir(folder_list.append)
if str(tester_name) not in str(folder_list) :
ftp.mkd("%s"%tester_name)
ftp.cwd("%s"%tester_name)
for files in parse_source_file_list :
print files
upload(ftp, files)
else :
print "later"