Ubuntu :: Bad Interpreter: Can't Find Perl In Synaptic Either

Oct 31, 2010

I downloaded a Perl script from off a page on the Internet, and tried to run it. It displayed its source in the web browser. First of all, I am in the cg-bin containing my cgi file and the file permissions are set to 755. I open the Terminal in this folder and run ls, which lists my file called hello.cgi; I run hello.cgi, and get a not found error, and run ./hello.cgi and get source code less comments:

Code:

me@fast:~/Files/Website/perl-dropdown/cgi-bin$ ls
hello.cgi redir.cgi
me@fast:~/Files/Website/perl-dropdown/cgi-bin$ hello.cgi

[code]....

Next I open my Synaptic and search for perl, so I can reinstall it. I find nothing. I navigate to /usr/bin and eventually find perl and perl5.xx as well.

View 4 Replies


ADVERTISEMENT

Programming :: Perl - Interpreter For Fib Numbers

Apr 1, 2010

As some of you know that I am new to this forum. I have another problem that I got stuck on. I have this file called "Fib.rbb" and my instructor told us to write an interpreter program by using Fib.rbb.

"You are to write an interpreter in Perl for Rongs Basic Basic (RBB) as explained in class. The BNF description for RBB and a test file called Fib.rbb are part of the RBB.zip file which is available in the Course Documents folder on blackboard. If you call your interpreter myIntp.pl, you would execute the program via perl myIntp.pl Fib.rbb

Code: Print "A few Fibonacci numbers:"

View 3 Replies View Related

CentOS 5 Server :: Error In SQL Ledger - Perl Interpreter

Jun 30, 2010

I've been running SQL-Ledger on Centos 5.5 (x86_64) for some time. At some point in time I must have done something to either perl or CPAN and I now get the following error in SQL-Ledger.
Not an ARRAY reference at SL/Form.pm line 1047.
Attempt to free unreferenced scalar: SV 0x18034630, Perl interpreter: 0x17363010 during global destruction.
Attempt to free unreferenced scalar: SV 0x18034630, Perl interpreter: 0x17363010 during global destruction

View 6 Replies View Related

General :: Find Mechanism With Irregular Expression (find Command) Or Perl?

Sep 7, 2010

I have 4 Linux machines with cluster.My target is to find all kind of IP address (xxx.xxx.xxx.xxx) in every file in the linux system remark: need to scan each file in the linux system and verify if the file include IP address if yes need to print the IP as the following

more /etc/inet/file.example1

182.23.2.4
255.255.0.0
10.10.1.1

View 1 Replies View Related

Ubuntu Installation :: Synaptic Doesn't Find The Xdialog

May 8, 2010

I had Xdialog installed on a Jaunty machine. According to Synaptic, it comes from the section "Miscellaneous - Graphical (Universe)". I did a fresh installation of Lucid 10.04. But, Synaptic doesn't find Xdialog. I tried downloading the RPM build from the website, but alien seems unable to correctly convert it. I know that we're "supposed" to use zenity, but zenity doesn't have some of the features that I need.

View 9 Replies View Related

Ubuntu Multimedia :: Can't Seem To Find Any Drivers From Synaptic Package Manager

Apr 15, 2010

I just got an 8 Gb Sandisk Sansa mp3 player and i can't seem to find any drivers from the Synaptic package manager. I did searches on mp3, mp3 player, Sansa and Sandisk and could seem to find anything that looked like what I need. I was able to find a driver for it on my fedora 12 laptop by searching on "Sansa" but am stuck on my Ubuntu Desktop.

View 3 Replies View Related

Fedora :: Synaptic Manager In F14 Can't Find Repositories?

May 9, 2011

Like the subjects says everytime I try to install a program using synaptic it says the repositories are not available, even changing the repositories included in it doesn't work, fedora 14 gnome.

View 2 Replies View Related

Programming :: Unable To Find The Perl

Mar 9, 2011

Just installed Fedora 14. I wanted to try "Hello World" with perl. But where is it?

Code: [user]@user bin]$ ls

View 1 Replies View Related

Programming :: Perl Can't Find The Readonly.pm

May 18, 2010

I am following a gtk2-perl tutorial, so I wrote the test program, installed gtk2-perl, and got this error:

Code:

Can't locate readonly.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.10.1 /usr/share/perl5/site_perl/5.10.1 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl /usr/lib/perl5/current /usr/lib/perl5/site_perl/current .) at ./test.pl line 7. BEGIN failed--compilation aborted at ./test.pl line 7.

I googled readonly.pm, and figured out it's part of some Readonly module.But how do I install it? Preferably using the Arch package manager?

View 10 Replies View Related

Ubuntu :: E: Couldn't Find Package Libnet-ssleay-perl

Mar 3, 2010

I've been scratching my head on this one for a while.My level of knowledge of Linux isn't great. I know enough to be dangerous. I'm trying to get Webmin installed to give me an easier web front to Linux. I run the command to get the prereq's.

Quote:

sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
Reading package lists... Done

[code]....

So I can see that it can't find libnet-ssleay-perl I bit of searching around leads me to the sources.list file which tells apt-get where to get the packages I think. This is as follows.

Quote:

#
# deb cdrom:[Ubuntu-Server 8.04 _Hardy Heron_ - Release amd64 (20080423.2)]/ hardy main restricted
#deb cdrom:[Ubuntu-Server 8.04 _Hardy Heron_ - Release amd64 (20080423.2)]/ hardy main restricted

[code]....

View 4 Replies View Related

Slackware :: Find Libgd Perl Package?

May 26, 2010

Where I can find libgd perl package for slackware?

View 1 Replies View Related

Server :: Using Find And Replace Command In Perl Script?

Jun 15, 2011

I have one perl sctipt which generate cfg file with ^M in all the EOL. I need to remove the ^M from the cfg file. How can i remove that from the perl script itself. I have tried the following unix command in perl script,

system("perl -pi -e 's/^M//g' *.cfg");

It doesn't work.

View 5 Replies View Related

Programming :: Find Out If X11 Is Running From Within Perl OR Bash Script?

Mar 17, 2010

I am writing a script based image manipulator but i need to know if X is running so i can tell if i use CACAVIEW to imagemagick DISPLAY command.

View 14 Replies View Related

Programming :: Perl - Counting Files With File - Find

Dec 20, 2010

So this is my code:

Code:

Modification of code I found here. It works, but I don't really know why.

Q1: Why is each filter hit counted only when the conditional is not true?

Q2: I've tried taking the file type, (.old), and put it into a variable for better usability, but then the script fails.

View 14 Replies View Related

Programming :: Find And Replace A String In A File Using Perl Command From Bash Script?

Feb 14, 2011

I wanted to find and replace a string from a perl file. I have written a script in bash which runs the following command.

perl -pi -e "s/$findstring/$replacestring/" testfile
where as $findstring = print F_WC_TMP"$line
";
and $replaceString = $line = join ' ', split ' ', $line; print F_WC_TMP"$line
";

But when I am running the above command, i think it is replacing the $findstring with the above mentioned string and hence it contains a $line, it is looking for the variable $line and not finding the exact string. I am confused about how to search for a string that contains $ in it and replace it with another $string.

View 5 Replies View Related

Ubuntu :: Switch Back To /usr/bin/perl After Installing Second Perl?

Aug 14, 2010

I recently reinstalled the B module for perl. Now I found out it didn't just do that, it installed a whole new copy of perl into /usr/local/bin/perl. When I type 'which perl' at the terminal, it says '/usr/local/bin/perl' instead of '/usr/bin/perl'. Normally, this wouldn't bother me. But I installed the one in local/bin without threading support. The one that comes with the system already is build with threading support, which is why I want to switch back to the system perl, and possibly remove the one in /usr/local/bin.

So how do I change it so that the result of 'which perl' returns as '/usr/bin/perl'? And what do I have to do to remove /usr/local/bin/perl?

The reason I need threading support is because I'm designing a file copier that copies several chunks of a file simultaneously to speed up the copying process. Guaranteed a useful script if it works.

View 7 Replies View Related

Programming :: Implement The OOP In Interpreter?

Mar 7, 2011

I have a partially completed interpreter that has first-calss functions and can store scopes in variables. That way it is possible to implement a simple class like this:

Code:

MyClass = func () {
value = 0;
setValue = func (x) value = x;;

[code]....

But what about inheritance, and what if I want to know the type of the object?

View 6 Replies View Related

Ubuntu :: Python Works In Interpreter But Not Actual Script?

Aug 17, 2010

I wrote a script to use egrep to search files for '#!/usr/bin/python' so I could tell what my Python scripts were/where they were. It grabs 'ls' and separates it into an array. It uses ls -F so I can pop anything with a / in it; giving me just files. It then egrep's them. Here's the code.

Code:
#!/usr/bin/python
import commands as com
ls = com.getoutput("ls -F")
ls = ls.split("

[Code]....

When I run all that code in the interpreter, it works. If I run it from Bash (eg ./egrep) it throws me an error like this 'egrep: [Screenshot.png]: No such file or directory' for every file in the directory. Also, it doesn't filter out the directories either.

View 5 Replies View Related

Ubuntu :: Matlab Latex Interpreter - Broken Fonts In EPS And PDF

May 27, 2011

Our Matlab users met the problem in Ubuntu while using Latex interpreter in Matlab. Namely, eps and pdf files generation out of Matlab plot outputs plot legend and axes lables incorrectly. All the letters are mixed, impression that character spaces are too dense. We can't blame Matlab, since exactly the same examples with the same Matlab version work fine on CentOS. We tested Ubntu 9.10, 10.4 and 10.10 -- same problem. Matlab version R2010b.

In addition, jpg, png generated with no problems. It's eps and pdf only
Matlab example:
plot(1:1:10)
xlabel('example','Interpreter','latex')
ylabel('ExAmPlE','Interpreter','latex')
a=legend('EXAMPLE example ExAmPle')
set(a,'Interpreter','latex','Fontsize',13)
print -depsc2 figure1
I am attaching a PDF, looks same as eps, but easier to display.

View 9 Replies View Related

Debian :: Java Interpreter Not Working?

Jul 25, 2010

I installed openjdk 6. The compiler works fine, but when I try to run the .class file, I get:

Exception in thread "main" java.lang.NoClassDefFoundError: hello/java
Caused by: java.lang.ClassNotFoundException: hello.java
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)

[code]...

View 5 Replies View Related

Fedora :: 'ld-linux.so.2 Bad Elf Interpreter' Error

Nov 12, 2009

I have installed fc11 x86_64 on my machine. When I try to install .bin files, it displays 'ld-linux.so.2 bad elf interpreter no such file or directory' error. I have also installed glibc but it didn't fix the problem.

View 1 Replies View Related

Fedora :: Installing Maya2010 - Bad ELF Interpreter?

Jan 22, 2010

I just wanted to install Maya 2010 on Fedora 12 x86_64, but setup alway ends with the following error (right after having started that):

Code:
bash: ./setup: /lib/ld-linux.so.2: bad ELF interpreter
Autodesk recommends Fedora 9 for Maya, but I wanted to give it a try on F12. So before giving up on that one, I've got some questions:

1. What's an ELF interpreter, anyway?

2. Is there any workaround for that problem, or do you have some suggestions on what I might try?

View 3 Replies View Related

General :: /bin/sh: Bad Interpreter: Permission Denied?

Nov 5, 2010

I am installing Oracle 11g on Oracle Enterprise Linux 5.0 32 bit (virtual machine)i did all the mandatory steps, i am trying to run the installer but i am facing the below:bash: ./runInstaller: /bin/sh: bad interpreter: Permission deniedknowing that the run isntaller is found in an iso file, in which i linked the VMwarre CD/DVD drive to it

View 4 Replies View Related

General :: Build ONLY Python Interpreter?

Oct 26, 2010

I am using ubuntu hardy and python 2.6.5 (built from sources). For a custom python packager I need to rebuild python interpreter (python executable). I am new to linux and don't have much knowledge of gcc and other stuff. Here is the process:1. Copy python.c as myapp.c. myapp.c is in the same directory (python2.6.5) in which I have all the required files. 2. Using the syntax from makefile of python sources, here is my first command to produce myapp.o

Code:
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I/home/zeno/installed/Python-2.6.5/Include -fPIC -DPy_BUILD_CORE -c myapp.c -o myapp.o
This produce myapp.o but throws a warning:

Code:
myapp.c:24:2: warning: no newline at end of file
Next is to produce the executable or python interpreter:
Code:
gcc -pthread -Xlinker -export-dynamic -o $@ myapp.o -L. -lpython2.6 -lpthread -ldl -lutil -lm -o myapp
This is causing an error:
Code:
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'

[Code]...

View 1 Replies View Related

Software :: Bad ELF Interpreter / No Such File Or Directory?

Jul 11, 2011

Starting sshd: /etc/init.d/sshd: /usr/sbin/sshd: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

---------- Post added 07-11-11 at 01:29 AM ----------

and btw i have install al glibc.x86_64

uname -m
x86_64

View 1 Replies View Related

Programming :: C++ Compilation And Attach In Tcl Interpreter?

Mar 25, 2011

i am working with ad hoc network but the problem is not getting any good documentation of how to compile c++ code then how to add the code into Tcl intrepreter and how to work with make file. i want to run my own algorithm using c++ and then want to incorporate it into tcl interpreter and then want to run.

View 2 Replies View Related

Programming :: Objects And Assignment In Interpreter?

Feb 9, 2011

I have it so that an Env object contains all the variables in the current scope, and the parent scope. You can also save them to variables like objects, and my idea is to use the "." operator to get values from them.

First, how do I assign to them? I currently have it that only a variable name can be assigned to, but you should be able to assign to an "obj.value" expression, too. How do I keep track of what variable to set and still be able to say it in an expression and have it evaluate to the variable?

Second, these object don't really have a "type", they're just containers that contain any values you want under any name you want. How can I, for example, define a primitive "boolean" object and have things like if statements recognize it?

View 14 Replies View Related

CentOS 5 Server :: Move 5.5 To /usr/bin/perl So Root Based On Perl 5.12.1?

Aug 11, 2010

I am new here and want to lern CentOS. Current I have installed CentOS 5.5 x64 and Perl 5.8.8. Now i have install Perl 5.12.1 which located to /usr/local/bin/perl. But how I can move it to /usr/bin/perl so root based on Perl 5.12.1?

View 7 Replies View Related

Programming :: Perl Find File And Then Replace String In File

Jul 28, 2009

I have script that I'm working on that updates a username in all the files that are called blah.inc for my framework. since i host a bunch of these web apps i need to do it to all of them. so I need to figure out how to update these files automagically with out me watching it to call vim every time. heres what I have so far

Code:

This finds the files but now i need to figure out how to do s/bob/fred/g on those files.

View 5 Replies View Related

Debian :: Launch The Perl Config \ Seems To Be That It Does Not Regonize Perl?

Jul 7, 2010

I am trying to launch the perl config, but when I do so I can an weird error.It seems to be that it does not regonize perl ?

conf.pl: line 11: =: command not found
conf.pl: line 19: my: command not found
conf.pl: line 20: syntax error near unexpected token `{'

[code]...

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved