abclinuxu.cz AbcLinuxu.cz itbiz.cz ITBiz.cz HDmag.cz HDmag.cz abcprace.cz AbcPráce.cz
AbcLinuxu hledá autory!
Inzerujte na AbcPráce.cz od 950 Kč
Rozšířené hledání
×
    dnes 04:44 | IT novinky

    Společnost Valve aktualizovala přehled o hardwarovém a softwarovém vybavení uživatelů služby Steam. Podíl uživatelů Linuxu dosáhl v březnu 5,33 % (Windows -4,28 %, OSX +1,19 %, Linux +3,10 %). Nejčastěji používané linuxové distribuce jsou Arch Linux, Linux Mint a Ubuntu. Při výběru jenom Linuxu vede SteamOS Holo s 24,48 %. Procesor AMD používá 67,48 % hráčů na Linuxu.

    Ladislav Hagara | Komentářů: 2
    včera 23:22 | IT novinky

    Společnost Apple slaví padesáté narozeniny. Založena byla 1. dubna 1976.

    Ladislav Hagara | Komentářů: 0
    včera 22:33 | Nová verze

    FreeTube, desktopový klient pro YouTube využívající lokální API, byl vydán ve verzi 0.24.0. Toto velké opravné vydání implementuje SABR (Server-Based Adaptive Bit Rate), což řeší část nedávných problémů s načítáním videí z YouTube, a aktualizuje základní komponenty jako Electron nebo přehrávač Shaka Player.

    |🇵🇸 | Komentářů: 1
    včera 16:33 | Humor

    Je tu opět apríl. O víkendu zmizel kamion s 12 tunami tyčinek KitKat. Firmy to využívají k aprílovým žertům. Groupon má super akci. Koupíte 1 tyčinku a dostanete 100 zdarma. Ryanair si přelepil letadla. Šéf Outlooku se ptá, proč mají v baráku 14 beden tyčinek KitKat (𝕏). Prusa Research představuje Prusa Pro ACU a vysvětluje proč přílišné sušení škodí vaším filamentům. Telefon Sony Xperia má miliónnásobný zoom (𝕏). PC.net představil Super Ultrabox 2600 se zajímavými parametry. Další aprílové novinky například na April Fools' Day On The Web.

    Ladislav Hagara | Komentářů: 2
    včera 13:22 | IT novinky

    Společnost OpenAI, která stojí za chatovacím robotem s umělou inteligencí (AI) ChatGPT, získala od investorů 122 miliard USD (2,6 bilionu Kč). Hodnota společnosti tak dosáhla 852 miliard dolarů (více než 18 bilionů Kč). Nejnovější kolo investování se stalo největší, jaké zatím firma uskutečnila, a peníze mají posílit ambiciózní plány rozšíření výpočetní kapacity, datových center a nábor talentů.

    Ladislav Hagara | Komentářů: 13
    včera 13:11 | IT novinky

    Nástroj k identifikaci občanů v on-line komunikaci s úřady byl dnes dopoledne zhruba dvě hodiny částečně nedostupný. Problém se objevil kolem 09:00 a podařilo se ho vyřešit kolem 11:00. Částečně nedostupná byla služba Národní identitní autority (NIA), problémy podle DIA (Digitální a informační agentura) ovlivňovaly přihlašování například i přes bankovní identitu. „Dostupnost NIA byla plně obnovena, přihlášení k digitálním službám

    … více »
    Ladislav Hagara | Komentářů: 3
    včera 13:00 | IT novinky

    Eben Upton oznámil další zdražení počítačů Raspberry Pi kvůli růstu cen pamětí a představil Raspberry Pi 4 s 3 GB RAM za 83,75 dolarů.

    Ladislav Hagara | Komentářů: 0
    včera 04:33 | Humor

    Anthropic patrně omylem zveřejnil celý zdrojový kód svého CLI nástroje Claude Code prostřednictvím přiloženého sourcemap souboru v npm balíčku. Únik odhalil doposud nijak nezveřejněné funkce jako je například režim v utajení, autonomní agent 'KAIROS', orchestrace multi‑agentů, režim snění nebo dokonce virtuální mazlíček Buddy. Zajímavostí je detekce naštvání uživatele pomocí obyčejného regexpu. Anthropic rychle odstranil sourcemap a vydal opravu, nicméně kopie kódu se již stihly na GitHubu rozšířit mezi prostým lidem.

    NUKE GAZA! 🎆 | Komentářů: 17
    31.3. 14:33 | Humor

    Copilot automaticky vkládal do pull requestů 'propagační tipy', reklamní text se na GitHubu objevil ve více než jedenácti tisících pull requestech. Po vlně kritiky byla tato funkce zablokována a produktový manažer Tim Rogers připustil, že umožnit Copilotovi upravovat cizí pull requesty bez vědomí autorů byla chyba.

    NUKE GAZA! 🎆 | Komentářů: 4
    31.3. 12:55 | Upozornění

    Je 31. března a tedy Světový den zálohování (World Backup Day). Co by se stalo, kdyby Vám právě teď odešel počítač, tablet nebo telefon, který používáte?

    Ladislav Hagara | Komentářů: 4
    Které desktopové prostředí na Linuxu používáte?
     (15%)
     (7%)
     (1%)
     (12%)
     (30%)
     (3%)
     (5%)
     (1%)
     (14%)
     (24%)
    Celkem 1204 hlasů
     Komentářů: 29, poslední 31.3. 11:17
    Rozcestník

    Dotaz: PHP a SQLite error

    10.9.2007 16:14 wr
    PHP a SQLite error
    Přečteno: 1287×
    Snazim se nainstalovat modul SQLite na PHP v5.1.6
    # pecl install SQLite-1.0.3.tgz
    Ale pri kompilaci to hlasi chybu. Zkousel jsem to opravit pomoci http://pecl.php.net/bugs/bug.php?id=9742
    downloading SQLite-1.0.3.tgz ...
    Starting to download SQLite-1.0.3.tgz (371,189 bytes)
    ............................................................................done: 371,189 bytes
    50 source files, building
    running: phpize
    Configuring for:
    PHP Api Version:         20041225
    Zend Module Api No:      20050922
    Zend Extension Api No:   220051025
    building in /var/tmp/pear-build-root/SQLite-1.0.3
    running: /tmp/tmptWsQKe/SQLite-1.0.3/configure
    checking for egrep... grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking whether gcc and cc understand -c and -o together... yes
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... i686-redhat-linux-gnu
    checking host system type... i686-redhat-linux-gnu
    checking target system type... i686-redhat-linux-gnu
    checking for PHP prefix... /usr
    checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM 
    -I/usr/include/php/Zend -I/usr/include/php/ext
    checking for PHP extension directory... /usr/lib/php/modules
    checking for PHP installed headers prefix... /usr/include/php
    checking for re2c... no
    configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
    checking for gawk... gawk
    checking for sqlite support... yes, shared
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for char *... yes
    checking size of char *... 4
    checking for usleep... yes
    checking for nanosleep... yes
    checking time.h usability... yes
    checking time.h presence... yes
    checking for time.h... yes
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking whether ln -s works... yes
    checking how to recognise dependent libraries... pass_all
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking how to run the C++ preprocessor... g++ -E
    checking for g77... no
    checking for f77... no
    checking for xlf... no
    checking for frt... no
    checking for pgf77... no
    checking for fort77... no
    checking for fl32... no
    checking for af77... no
    checking for f90... no
    checking for xlf90... no
    checking for pgf90... no
    checking for epcf90... no
    checking for f95... f95
    checking whether we are using the GNU Fortran 77 compiler... yes
    checking whether f95 accepts -g... yes
    checking the maximum length of command line arguments... 32768
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC
    checking if gcc PIC flag -fPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    checking for ld used by g++... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC
    checking if g++ PIC flag -fPIC works... yes
    checking if g++ static flag -static works... yes
    checking if g++ supports -c -o file.o... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    appending configuration tag "F77" to libtool
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    checking for f95 option to produce PIC... -fPIC
    checking if f95 PIC flag -fPIC works... yes
    checking if f95 static flag -static works... yes
    checking if f95 supports -c -o file.o... yes
    checking whether the f95 linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    configure: creating ./config.status
    config.status: creating config.h
    running: make
    /bin/sh /var/tmp/pear-build-root/SQLite-1.0.3/libtool --mode=compile gcc -I/tmp/tmptWsQKe/SQLite-1.0.3/libsqlite/src -I.
    -I/tmp/tmptWsQKe/SQLite-1.0.3 -DPHP_ATOM_INC 
    -I/var/tmp/pear-build-root/SQLite-1.0.3/include 
    -I/var/tmp/pear-build-root/SQLite-1.0.3/main 
    -I/tmp/tmptWsQKe/SQLite-1.0.3 -I/usr/include/php 
    -I/usr/include/php/main -I/usr/include/php/TSRM 
    -I/usr/include/php/Zend -I/usr/include/php/ext  -DHAVE_CONFIG_H  -g
     -O2   -c /tmp/tmptWsQKe/SQLite-1.0.3/sqlite.c -o sqlite.lo
    mkdir .libs
     gcc -I/tmp/tmptWsQKe/SQLite-1.0.3/libsqlite/src -I. 
    -I/tmp/tmptWsQKe/SQLite-1.0.3 -DPHP_ATOM_INC 
    -I/var/tmp/pear-build-root/SQLite-1.0.3/include 
    -I/var/tmp/pear-build-root/SQLite-1.0.3/main 
    -I/tmp/tmptWsQKe/SQLite-1.0.3 -I/usr/include/php 
    -I/usr/include/php/main -I/usr/include/php/TSRM 
    -I/usr/include/php/Zend -I/usr/include/php/ext -DHAVE_CONFIG_H -g 
    -O2 -c /tmp/tmptWsQKe/SQLite-1.0.3/sqlite.c  -fPIC -DPIC -o .libs/sqlite.o
    /tmp/tmptWsQKe/SQLite-1.0.3/sqlite.c:56: error: 'BYREF_NONE' undeclared here (not in a function)
    /tmp/tmptWsQKe/SQLite-1.0.3/sqlite.c:56: error: 'BYREF_FORCE' undeclared here (not in a function)
    /tmp/tmptWsQKe/SQLite-1.0.3/sqlite.c:125: warning: initialization from incompatible pointer type
    /tmp/tmptWsQKe/SQLite-1.0.3/sqlite.c:126: warning: initialization from incompatible pointer type
    make: *** [sqlite.lo] Error 1
    ERROR: `make' failed
    
    Dokonce jsem to zkusil druhym zpusobem:
    tar xfz php-5.2.4.tar.gz 
    cd php-5.2.4/ext/sqlite
    phpize
    ./configure --enable-sqlite-utf8
    make
    make install
    
    sqlite.so by se melo nainstalovat do /usr/lib/php/modules
    Diky za jakoukoliv radu!

    Odpovědi

    10.9.2007 22:52 H0ax | skóre: 8
    Rozbalit Rozbalit vše Re: PHP a SQLite error
    Nejprve bych zacal s instalaciphp-pecl-sqlite
    Pak bych ztahnul SQLite primo
    $ pear download sqlite
    $ tar zxvf SQLite-1.0.3.tgz
    $ cd SQLite-1.0.3
    $ phpize
    $ ./configure
    $ make
    
    Pokud se to nepovede tak udelat nasledujici,
    edituj sqlite.c a zakomentuj:
    /* static unsigned char arg3_force_ref[] = {3, BYREF_NONE, BYREF_NONE, BYREF_FORCE }; */
    Zmeni nasledujici radky:
    function_entry sqlite_functions[] = {
    PHP_FE(sqlite_open, arg3_force_ref)
    PHP_FE(sqlite_popen, arg3_force_ref)
    na:
    function_entry sqlite_functions[] = {
    PHP_FE(sqlite_open, third_arg_force_ref)
    PHP_FE(sqlite_popen, third_arg_force_ref)
    
    Potom uz jen
    $ make
    $ make install
    $ cp modules/sqlite.so /usr/lib/php/modules
    $ service httpd restart
    
    Je to bug a potomhle by to melo fungovat.
    11.9.2007 16:55 wr
    Rozbalit Rozbalit vše Re: PHP a SQLite error
    Jeste problem, kdyz volam:
    $db = new SQLiteDatabase("my.db", 0666, $error) or die("Failed: $error");
    Hodi to chybu Fatal error: Class 'SQLiteDatabase' not found.
    Procedulatni verze zato chodi skvele:
    $db = sqlite_open("my.db", 0666, $error) or die("Error: ".$error);
    Po mensim hrani si s PDO jsem to zkopiloval takto:
    POD ./configure --with-zlib --enable-pdo=shared --with-pdo-sqlite=shared --with-sqlite=shared
    SQLite ./configure --with-sqlite=shared
    
    Ale porad to hlasi tu chybu, ze nemuze najit tridu SQLiteDatabase. Co s tim?
    11.9.2007 21:25 wr
    Rozbalit Rozbalit vše Re: PHP a SQLite error
    Volani do ztracena: Je tu nejaky PHP programator ktery by mi pomohl vyresit problem uvedeny vyse??
    13.9.2007 21:25 wr
    Rozbalit Rozbalit vše Re: PHP a SQLite error
    Prosim pomuze nekdo???

    Založit nové vláknoNahoru

    Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

    ISSN 1214-1267   www.czech-server.cz
    © 1999-2015 Nitemedia s. r. o. Všechna práva vyhrazena.