Configurare Sistem de operare

Cum sa afisezi procentajul bateriei pe MAC

Procentul de baterie de pe MAC este o statistica pe care ajungi sa o verifici destul de des. Insa mica pictograma implicita a bateriei din bara de meniu va arata doar o imagine vaga. Iata cum sa afisati procentajul bateriei pe Mac-ul dumneavoastra in bara de meniu.

  • Faceti click pe pictorgrama Apple din bara de meniu si alegeti optiunea “System Preferences”

  • Aici accesati optiunea “Dock & Menu Bar’’

  • Acum, din bara laterala selectati optiunea “Battery”. Bifati optiunea  “Show Battery Percentage”.

  • De acum aveti afisat procentajul bateriei in bara de meniu.

[mai mult...]

Cum se instalează XML :: LibXML pe Ubuntu Linux

Practic, eroarea afișată a fost „Nu se poate localiza XML / LibXML.pm în @INC” și arăta astfel:

Can’t locate XML/LibXML.pm in @INC (you may need to install the XML::LibXML module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at ./run_test.pl line 15.
BEGIN failed–compilation aborted at ./run_test.pl line 15.

Pe măsură ce eroarea a sugerat soluția, am încercat să instalez modulul LibXML Perl folosind comanda de mai jos:

sudo cpan install XML::LibXML

Dar această comandă a dat peste o altă problemă. Ieșirea completă este următoarea:

Loading internal null logger. Install Log::Log4perl for logging messages
Reading ‘/home/abhi/.cpan/Metadata’
Database was generated on Thu, 23 Mar 2017 09:41:02 GMT
Running install for module ‘XML::LibXML’
Checksum for /home/abhi/.cpan/sources/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0129.tar.gz ok
‘YAML’ not installed, will not store persistent state
Configuring S/SH/SHLOMIF/XML-LibXML-2.0129.tar.gz with Makefile.PL
enable native perl UTF8
running xml2-config…didn’t manage to get libxml2 config, guessing
options:
LIBS=’-L/usr/local/lib -L/usr/lib -lxml2 -lm’
INC=’-I/usr/local/include -I/usr/include’
If this is wrong, Re-run as:
$ /usr/bin/perl Makefile.PL LIBS=’-L/path/to/lib’ INC=’-I/path/to/include’

Checking for ability to link against xml2…no
Checking for ability to link against libxml2…libxml2, zlib, and/or the Math library (-lm) have not been found.
Try setting LIBS and INC values on the command line
Or get libxml2 from
http://xmlsoft.org/
If you install via RPMs, make sure you also install the -devel
RPMs, as this is where the headers (.h files) are.

Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter
to see the exact reason why the detection of libxml2 installation
failed or why Makefile.PL was not able to compile a test program.
No ‘Makefile’ created SHLOMIF/XML-LibXML-2.0129.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site — NOT OK

[mai mult...]