Questions tagged [perl]

Perl is a high-level programming language that comes installed by default in Ubuntu. It is well known for it's use for text manipulation, CGI scripts and it's huge community. You can find any modul and many tutorials on http://www.cpan.org/

Filter by
Sorted by
Tagged with
0 votes
1 answer
149 views

Dependency is not satisfiable: libgtk2-perl

I am trying to install gmusicbrowser in ubuntu 22.04 but sadly I am getting the below errors. I have sudo apt install libglib2.0-dev in a blind hope it might install perl, but no such luck. sudo gdebi ...
1 vote
1 answer
6k views

Unable to install php8.2-dev on ubuntu 20.04

I'm trying to install swool using perl on ubuntu server then i get bellow error: ERROR: `phpize' failed As i searched turns out i should install php-dev but then i got below errors: The following ...
3 votes
3 answers
8k views

Perl may be unconfigured?

Hi I have error when I want to install,remove or configure my package this is the error debconf: Perl may be unconfigured (Can't locate Debconf/Log.pm in @INC (you may need to install the Debconf::...
0 votes
1 answer
52 views

preint and postrm scripts are not running showing as access denied

root@XXXXXXXXXX:/home/user# apt install /var/cache/apt/archives/perl_5.36.0-7 ubuntu0.23.04.2_amd64.deb Reading ...
1 vote
2 answers
12k views

How to run perl script in background

I am new user to ubuntu... Putting & and in the end is putting the application on background, but not really, it still gives me the output of the perl script in my command line even though it is ...
2 votes
3 answers
2k views

Add Prefix name in a file in Perl Script

I am trying to write a perl script to add the prefix name on the file (~100 files), but i am failed to get it done. Example case that what I means: abc.jpg change to NYear_abc.jpg def.jpg ...
0 votes
1 answer
179 views

Bash script does not recognize commands (Perl and Python scripts)

I have this script in bash inside which is defined to use perl and python for subprograms that need to analyze my data. Script is executing fine until Step3 and Step4 and crashes with command not ...
0 votes
0 answers
136 views

Ubuntu 22.04: perl ExtUtils::Embed is broken for ldopts

Running perl -MExtUtils::Embed -e ldopts results in unusable output: -Wl,-E -fstack-protector-strong -L/usr/local/lib -L/usr/lib/x86_64-linux-gnu/perl/5.34/CORE -lperl -ldl -lm -lpthread -lc -lcrypt ...
1 vote
2 answers
486 views

reinstall spamassassin (broken perl)

spamassassin was broken on my Ubuntu 20.10 and I can't reinstall it. I have done dpkg --purge spamassassin sa-compile spamc deluser --remove-all-files debian-spamd apt update apt upgrade apt install ...
0 votes
1 answer
181 views

Perl: replace literal expression and literal variable names

When I use this expression: echo '...${var}#other.([]);,=${var}#other${var}...' | perl -pe 's/\Q.([]);,=${var}\E/.([]);,=ok/' As expected, the variable ${var} is expanded to "" (empty value)...
6 votes
2 answers
5k views

How do I run asciiquarium in out-of-the-box ubuntu?

Asciiquarium is a perl script that requires Term::Animation. What are the appropriate hoops to jump through to get this cpan module into an ubuntu perl install? apt-cache search animation |grep -i ...
0 votes
2 answers
332 views

perl - get non-zero exit code if at least one of the listed files does not exist

As for the cat command, which returns an exit code other than 0 if at least one file in the list does not exist, but continuing its execution, I would also like the same behavior for the "perl&...
0 votes
1 answer
1k views

Can not start postgresql due to perl error

I have installed postgres on my Ubuntu, when I try to run the psql command I am getting following error: $ psql Can't locate POSIX.pm: /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/POSIX.pm: ...
4 votes
1 answer
7k views

perl install DBD::mysql failed on ubuntu 20.04

I have installed the latest mysql database on my ubuntu 20.04 laptop. Next I tried to install all the perl modules I need to write Perl scripts to access my mysql database. I started a "sudo -i&...
22 votes
5 answers
227k views

How do I update/install Perl?

The Perl package is in /usr/bin and is an older version (5.12.4). The current stable release appears to be 5.14.2. How do I update this version? Root access is required, and I do not want to compile ...
1 vote
2 answers
331 views

How to delete emojis from Youtube filenames?

Im trying to remove emoticons from this Youtube filename: وسائل الاتصال الحديثة󾌧 📺 & 💻 😃 -eYrBcHOx2Jf.mp4 Im using perl -p -e 's/[^[:ascii:]]//g' and tr -dc '[:print:]' but got this; & -...
0 votes
1 answer
684 views

perl modules missing after upgrading to 22.04

Yesterday I upgraded from 20.04 to 22.04 the upgrade went fairly smoothly. However, after the upgrade, all the perl modules I had installed were no longer installed. Is this because Perl was re-...
1 vote
0 answers
42 views

perl script wont run unless I use perl prefix [duplicate]

I have a weird problem trying to run a simple perl script on ubuntu 22.04. test.pl content: #!/usr/bin/perl print "Hello\n"; output of which perl command: /usr/bin/perl I used to run ...
1 vote
1 answer
269 views

ubuntu cannot find /usr/bin/ld -lperl

/usr/bin/ld: cannot find -lperl collect2: error: ld returned 1 exit status. command used -L/usr/lib/x86_64-linux-gnu/per;/5.30/Core -lperl -ldl -lm -lpthread -lc -lcrypt libtool On the above path I ...
20 votes
3 answers
31k views

How do I install asciiquarium?

How do I install and run asciiquarium in Ubuntu? It seems kind of complicated, and I don't know how to compile source code.
0 votes
1 answer
65 views

Error when installing mariadb on Chromebook

I'm trying install wordpress locally on my chromebook following these instructions. I successfully ran: ` sudo apt update sudo apt upgrade sudo apt install nano ` But then get an error when I try to ...
-1 votes
1 answer
716 views

Why Ubuntu (20.04) doesn't have Perl preinstalled?

https://unix.stackexchange.com/questions/48018/why-is-perl-installed-by-default-with-most-linux-distributions https://stackoverflow.com/questions/1164133/are-there-unix-platforms-where-perl-is-not-...
3 votes
0 answers
2k views

How to install slurm-seff in Ubuntu [duplicate]

I am trying to install Slurm-seff Perl package into Ubuntu 19.10. It has .rpm package to install https://pkgs.org/download/slurm-seff ; but I am unable to install alien to install the .rpm package. ...
2 votes
3 answers
823 views

Renaming multiple files by removing a single number (1 & 2) in each file [duplicate]

I have approx 200 files named in the format: paired_dat_11_R1.fq paired_dat_12_R2.fq paired_dat_121_R1.fq paired_dat_122_R2.fq paired_dat_851_R1.fq paired_dat_852_R2.fq I just would like to rename ...
1 vote
1 answer
3k views

Install perl to /usr/local/bin

Is it possible to install perl to /usr/local/bin without full sudo permissions namely only sudo apt install ... being allowed. I have a DVD with a software, using /usr/local/bin/perl in shebang, ...
0 votes
2 answers
623 views

WSL Ubuntu why does cpanm install Perl5 modules in the wrong spot?

I have Ubuntu installed under Windows Subsystem for Linux 2 (WSL2). There are Perl5 modules installed under /usr/share/perl/5.30.0 and I can access these with a plain use statement. But when I install ...
3 votes
2 answers
8k views

loadable library and perl binaries are mismatched

I don't use perl, but I do use Slic3r, which apparently uses perl. I don't know what has done it, but some update somewhere has broken perl and I have no idea how to fix it. I've searched a lot but ...
0 votes
1 answer
77 views

how to show perl printf with decimal as a variable

#!/usr/bin/env bash n=3 awk "BEGIN {printf \"%.\"$n\"f\", (2*2.22222222)}" result: 4.444 but: perl -e "printf \"%.3f\", (2*2.22222222)" how ...
1 vote
0 answers
184 views

perl can't see path problem ubuntu 20.04.4 anaconda

Hi Im trying to run pfam_scan.pl (bioinformatics) Im using conda but theres is perl from ubuntu system... Its conflicts with another? Or script can't see modules? $ pfam_scan.pl Can't locate Moose.pm ...
0 votes
0 answers
263 views

unable to locate librrd-simple-perl

I am unable to install librrd-simple-perl. System says it is "unable to locate package...". I am trying to install it on a fresh Ubuntu Server LTS 22.04. Am I missing a repository?
1 vote
5 answers
704 views

search for duplicate photos

I have photos, in folder A, they also exist, in folders B and C. They have the same filenames. How to search for them and delete them from folder A? A perl script or something would be ideal since I ...
0 votes
0 answers
21 views

How to find mentions of a string in all directory files? [duplicate]

I will describe my task: I have a lot of directories with a lot of perl-files. I need to find all files that mention the string "license.key". What ways can this be implemented?
4 votes
2 answers
1k views

Shutter is complaining about that can't locate Carp/Always.pm in @INC

I made a full upgrade from Ubuntu v18 to Ubuntu v20. Shutter was not upgraded - it was removed. I was trying to install from CRAN or from source. Both complain about old Perl libraries. When I am ...
2 votes
2 answers
19k views

Unable to locate package perl(Net: & IO::Socket:)

When i am trying to use following command it shows following error root@RR-DE-NMS-1:~# apt-get install 'perl(Net::SSLeay)' 'perl(IO::Socket::SSL)' Reading package lists... Done Building dependency ...
0 votes
0 answers
491 views

Problem installing Perl module Sys::Info::Driver::Linux

I am running Linux on Windows (Ubuntu) to install a bioinformatics software (MEME Suite - Installation Guide). Please bear in mind I do not have much experience using Linux. I am following the ...
3 votes
1 answer
4k views

Trying to update from 16.04LTS to 18.04LTS but unmet perl dependencies or conflicts when updating packages

I've done: sudo apt update But when I do sudo apt upgrade, I get: The following packages have unmet dependencies: perl-modules-5.22 : Conflicts: perl-modules Conflicts: perl-...
-1 votes
1 answer
47 views

How to handle format in perl?

I want to write the number in two decimal using Perl script. Here is my code. #!/usr/bin/perl -w print "Preparing input files\n"; $incr=0.10; &prepare_input(); exit(0); sub ...
0 votes
1 answer
4k views

How to install all the perl modules in Ubuntu at once

I want to install LWP::UserAgent. I tried by using metascan manual method. but it has ~50 depedencies. I was installing RepeatModeler by using the command perl ./configure But I get: The following ...
1 vote
0 answers
415 views

How to use cpan command to install downloaded perl module (.tar.gz file)

I want to install Sys::RunAlone. I'm not able to install cpanm due to other independent reason, with which I was able to give the downloaded Sys::RunAlone compressed file directly and it installed. In ...
0 votes
1 answer
74 views

Can Raku and Perl 5 Run on Same Ubuntu With Switching

I am using a desktop with Ubuntu 20.04. I have Perl 5 installed. I will be installing Raku. Before I install Raku, I want to make sure that I can switch between them, when running a Perl script. Is ...
0 votes
1 answer
192 views

variable substitution

I found this on shell script, in variable substitution option using cap symbols can anyone explain the logic of this nf=${f:gs^__^/^} for f in notes__* books__*; do nf=${f:gs^__^/^} perl -p -...
0 votes
0 answers
14 views

Open pl command [duplicate]

This is probably pretty basic but I have not been able to solve it. I am trying to execute IDrive for Linux, and following the instructions I need to run account_setting.pl. I open the terminal ...
1 vote
1 answer
2k views

How to read multiple files in a directory by matching a pattern?

I have a directory containing 'x' no. of files. Some files contain a "Pass" string and some others with "Fail". I want to read both files and store the pass and fail files separately into two ...
1 vote
2 answers
403 views

Problem with Perl installation on Ubuntu 20.04

I am an inexperienced user. I have two different bioinformatics applications using different Perl libraries. I get the following error when trying to execute one of them: /usr/bin/perl: symbol lookup ...
0 votes
1 answer
144 views

for loop issues, ls not working right

I have a code that has to be run through Ubuntu. When my code reaches filelist, instead of giving all of the subfolders within the filelist, it gives the same list as from the subjectlist... why is ...
1 vote
1 answer
338 views

Perl script error : 'script executable not found'

I am trying to execute a perl script from Ubuntu (14.04 LTS). The script is transOutput.pl which calls an executable pdb_trans. However, when I run the script, I get the following error that pdb_trans ...
0 votes
2 answers
774 views

What Ubuntu 20.04 package gives the Perl module Locale::Language?

What Ubuntu 20.04 package gives the Perl module Locale::Language? I've looked on https://packages.ubuntu.com/ but I can't find anything. Web search isn't turning up anything. Not sure I'm searching ...
0 votes
1 answer
778 views

nginx hangs if "reload" 2 times

If you execute "service nginx reload" 2 times (this also works with any commands that execute "reload", for example systemctl reload nginx.service) - nginx hangs and stops ...
1 vote
2 answers
62 views

Append multiple digits to the end of eatch lines

i need to cat temperature values in /sys/class/hwmon/hwmon[0-9]/temp[0-9]_input and append them to the corresponds names in given file. help !
0 votes
1 answer
800 views

Install perl 5.10.1 on Ubuntu 18.04

I am trying to install an old version of perl (5.10.1) since it is a dependency for software I want to use (and newer versions do not work). I downloaded the source from https://www.cpan.org/src/...

1
2 3 4 5
7