Tam Sürümünü Görmek İçin : Kaynak koddan modül kurmak
Want isminde bir perl modülünü kaynak kodlarından kurmaya çalışıyorum (win altında)
c:\Perl\moduller\Want>make MakeFile (sorun yok)
c:\Perl\moduller\Want>make install
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
Fatal: 'all' does not exist - don't know how to make it
en basit modülleri bile kuramıyorum, sorun kullandığım "make" programında mı?
Borland C++ 5.5 kullanıyorum.
@anov bende Microsoft Visual C/C++ yüklü ve onun nmake si ile modülleri kuruyorum. Senin dediğin Want modülünü aşağıdaki gibi kurdum. Hiçbir sorunla karşılaşmadım. Siyah yerler kurulum adımlarını gösteriyor.
C:\Want-0.12\Want-0.12>perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Want
C:\Want-0.12\Want-0.12>nmake
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
cp Want.pm blib\lib\Want.pm
C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils/xsubpp -typemap C:\Perl\lib\E
xtUtils\typemap Want.xs > Want.xsc && C:\Perl\bin\perl.exe -MExtUtils::Command
-e mv Want.xsc Want.c
cl -c -nologo -Gf -W3 -MD -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT
-DHAVE_DES_FCRYPT -DNO_HASH_SEED -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -D
USE_PERLIO -DPERL_MSVCRT_READFIX -MD -DNDEBUG -O1 -DVERSION=\"0.12\" -DXS_VE
RSION=\"0.12\" "-IC:\Perl\lib\CORE" Want.c
Want.c
Want.c(553) : warning C4101: 'RETVAL' : unreferenced local variable
Running Mkbootstrap for Want ()
C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 Want.bs
C:\Perl\bin\perl.exe -MExtUtils::Mksymlists -e "Mksymlists('NAME'=>\"Wa
nt\", 'DLBASE' => 'Want', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => {
}, 'DL_VARS' => []);"
link -out:blib\arch\auto\Want\Want.dll -dll -nologo -nodefaultlib -relea
se -libpath:"C:\Perl\lib\CORE" -machine:x86 Want.obj C:\Perl\lib\CORE\perl58
.lib oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib a
dvapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.li
b mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib -def:Want.de
f
Creating library blib\arch\auto\Want\Want.lib and object blib\arch\auto\Want\
Want.exp
C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 755 blib\arch\auto\Wan
t\Want.dll
C:\Perl\bin\perl.exe -MExtUtils::Command -e cp Want.bs blib\arch\auto\Wa
nt\Want.bs
C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 blib\arch\auto\Wan
t\Want.bs
C:\Want-0.12\Want-0.12>nmake install
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
Running Mkbootstrap for Want ()
C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 Want.bs
link -out:blib\arch\auto\Want\Want.dll -dll -nologo -nodefaultlib -relea
se -libpath:"C:\Perl\lib\CORE" -machine:x86 Want.obj C:\Perl\lib\CORE\perl58
.lib oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib a
dvapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.li
b mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib -def:Want.de
f
Creating library blib\arch\auto\Want\Want.lib and object blib\arch\auto\Want\
Want.exp
C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 755 blib\arch\auto\Wan
t\Want.dll
C:\Perl\bin\perl.exe -MExtUtils::Command -e cp Want.bs blib\arch\auto\Wa
nt\Want.bs
C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 blib\arch\auto\Wan
t\Want.bs
Installing C:\Perl\site\lib\auto\Want\Want.bs
Installing C:\Perl\site\lib\auto\Want\Want.dll
Installing C:\Perl\site\lib\auto\Want\Want.exp
Installing C:\Perl\site\lib\auto\Want\Want.lib
Files found in blib\arch: installing files in blib\lib into architecture depende
nt library tree
Installing C:\Perl\site\lib\Want.pm
Writing C:\Perl\site\lib\auto\Want\.packlist
Appending installation info to C:\Perl\lib/perllocal.pod
Derledikten sonra ppd dosyasınıda hazırladım. Ekte alıp yükleyebilirsin.
Want-0.12.rar bir yere aç ve o dizindeyken
ppm>install Want.ppd
diyerek kurabilirsin.
sorun kurulum değil.
zaten kaynak koddan kurmayı başaramayınca, ppm kullanarak sorunsuz yükledim.
install Want demem bile ppm için yeterli. ppm için bir sorun yok.
esasında kaynak koddan kurulumu öğrenmeye çalışıyorum sanırım kullandığım program bu iş için yetersiz. (%90 ihtimalle ben yetersizim ya neyse)
visual c++ dışında win için bir make , compiler önerin var mıdır?
not : hiç bir görsellik içermemesi tercih sebebidir. dos tan çalıştırabileceğim bir şey olsa.
Benim bildiklerim
dmake http://search.cpan.org/dist/dmake/
nmake http://download.microsoft.com/download/vc15/patch/1.52/w95/en-us/nmake15.exe
MinGW (gcc) http://www.mingw.org/ (Windows için olanı)
Eğer MicroSoft Visual C/C++ 6.0 yüklü ise C kütüphanesi birçok eksiği tamamlar. Genelde birçok modül C kütüphanesinde lazım olan bir dosyayı bulamadığı için derlenmez.
Bazı modüller ise tamamen linux'agöre yazıldığından zaten onların windowsta derlenmesi zordur.
MicroSoft Visual C/C++ 6.0 yüklü ise nmake programı sisteme yükleniyor.
Evet perlci sonunda bir modülü kaynak kodundan kurmayı başardım.
Hem yarışmaya da katılalım. Yolsuzum bu aralar. ;)
Konuyla ilgili olduğu için buraya linkini ekleyelim:
http://www.ceviz.net/perl-modullerini-kaynak-koddan-derleyerek-kurmak-windows_a886.html
Verdiğin cevap için çok teşekkürler. Yol gösterici oldu benim için. Zamanında Borland ın derleyicisiyle gelen make programını kullandığım için bir türlü bu işi yapamıyordum.
Makaleni gördüm ve şimdiye dek böyle Türkçe bir modül kurma ile ilgili yazı yok,en azından ben görmedim. Birçok kişiye rehber olacaktır.
Eline sağlık.
sirusm11
28/03/2007, 12:47
kach gundu ugrashiyorum, bi turlu kuramiyorum. Lutfen yardim edin. Su erroru yeriyo:
C:\Perl\modules\pgsql_perl5-1.9.0>perl makefile.pl
Configuring Pg
Remember to actually read the README file !
OS: MSWin32
Note (probably harmless): No library found for -lpq
Writing Makefile for Pg
C:\Perl\modules\pgsql_perl5-1.9.0>nmake test
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
cl -c -IC:\postgres\include -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN
32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -
DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -M
D -Zi -DNDEBUG -O1 -DVERSION=\"1.9.0\" -DXS_VERSION=\"1.9.0\" "-IC:\Perl\li
b\CORE" Pg.c
Pg.c
Pg.xs(427) : warning C4018: '<' : signed/unsigned mismatch
Running Mkbootstrap for Pg ()
C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 Pg.bs
link -out:blib\arch\auto\Pg\Pg.dll -dll -nologo -nodefaultlib -debug -op
t:ref,icf -libpath:"C:\Perl\lib\CORE" -machine:x86 Pg.obj C:\Perl\lib\CORE\p
erl58.lib "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\LIB\oldnames.l
ib" "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\lib\kern
el32.lib" "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\li
b\user32.lib" "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSD
K\lib\gdi32.lib" "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\Platfor
mSDK\lib\winspool.lib" "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\P
latformSDK\lib\comdlg32.lib" "C:\Program Files\Microsoft Visual Studio .NET 2003
\VC7\PlatformSDK\lib\advapi32.lib" "C:\Program Files\Microsoft Visual Studio .NE
T 2003\VC7\PlatformSDK\lib\shell32.lib" "C:\Program Files\Microsoft Visual Studi
o .NET 2003\VC7\PlatformSDK\lib\ole32.lib" "C:\Program Files\Microsoft Visual St
udio .NET 2003\VC7\PlatformSDK\lib\oleaut32.lib" "C:\Program Files\Microsoft Vis
ual Studio .NET 2003\VC7\PlatformSDK\lib\netapi32.lib" "C:\Program Files\Microso
ft Visual Studio .NET 2003\VC7\PlatformSDK\lib\uuid.lib" "C:\Program Files\Micro
soft Visual Studio .NET 2003\VC7\PlatformSDK\lib\ws2_32.lib" "C:\Program Files\M
icrosoft Visual Studio .NET 2003\VC7\PlatformSDK\lib\mpr.lib" "C:\Program Files\
Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\lib\winmm.lib" "C:\Program Fil
es\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\lib\version.lib" "C:\Progra
m Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\lib\odbc32.lib" "C:\Pr
ogram Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\lib\odbccp32.lib"
"C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\LIB\msvcrt.lib" -def:Pg.
def
Creating library blib\arch\auto\Pg\Pg.lib and object blib\arch\auto\Pg\Pg.exp
Pg.obj : error LNK2019: unresolved external symbol _PQconnectdb referenced in fu
nction _XS_Pg_connectdb
Pg.obj : error LNK2019: unresolved external symbol _PQsetdbLogin referenced in f
unction _XS_Pg_setdbLogin
Pg.obj : error LNK2019: unresolved external symbol _PQconndefaults referenced in
function _XS_Pg_conndefaults
Pg.obj : error LNK2019: unresolved external symbol _PQresStatus referenced in fu
nction _XS_Pg_resStatus
Pg.obj : error LNK2019: unresolved external symbol _PQfinish referenced in funct
ion _XS_PG_conn_DESTROY
Pg.obj : error LNK2019: unresolved external symbol _PQreset referenced in functi
on _XS_PG_conn_reset
Pg.obj : error LNK2019: unresolved external symbol _PQrequestCancel referenced i
n function _XS_PG_conn_requestCancel
Pg.obj : error LNK2019: unresolved external symbol _PQdb referenced in function
_XS_PG_conn_db
Pg.obj : error LNK2019: unresolved external symbol _PQuser referenced in functio
n _XS_PG_conn_user
Pg.obj : error LNK2019: unresolved external symbol _PQpass referenced in functio
n _XS_PG_conn_pass
Pg.obj : error LNK2019: unresolved external symbol _PQhost referenced in functio
n _XS_PG_conn_host
Pg.obj : error LNK2019: unresolved external symbol _PQport referenced in functio
n _XS_PG_conn_port
Pg.obj : error LNK2019: unresolved external symbol _PQtty referenced in function
_XS_PG_conn_tty
Pg.obj : error LNK2019: unresolved external symbol _PQoptions referenced in func
tion _XS_PG_conn_options
Pg.obj : error LNK2019: unresolved external symbol _PQstatus referenced in funct
ion _XS_PG_conn_status
Pg.obj : error LNK2019: unresolved external symbol _PQerrorMessage referenced in
function _XS_PG_conn_errorMessage
Pg.obj : error LNK2019: unresolved external symbol _PQsocket referenced in funct
ion _XS_PG_conn_socket
Pg.obj : error LNK2019: unresolved external symbol _PQbackendPID referenced in f
unction _XS_PG_conn_backendPID
Pg.obj : error LNK2019: unresolved external symbol _PQtrace referenced in functi
on _XS_PG_conn_trace
Pg.obj : error LNK2019: unresolved external symbol _PQuntrace referenced in func
tion _XS_PG_conn_untrace
Pg.obj : error LNK2019: unresolved external symbol _PQsetNoticeProcessor referen
ced in function _XS_PG_conn_setNoticeProcessor
Pg.obj : error LNK2019: unresolved external symbol _PQmakeEmptyPGresult referenc
ed in function _XS_PG_conn_exec
Pg.obj : error LNK2019: unresolved external symbol _PQexec referenced in functio
n _XS_PG_conn_exec
Pg.obj : error LNK2019: unresolved external symbol _PQnotifies referenced in fun
ction _XS_PG_conn_notifies
Pg.obj : error LNK2019: unresolved external symbol _PQsendQuery referenced in fu
nction _XS_PG_conn_sendQuery
Pg.obj : error LNK2019: unresolved external symbol _PQgetResult referenced in fu
nction _XS_PG_conn_getResult
Pg.obj : error LNK2019: unresolved external symbol _PQisBusy referenced in funct
ion _XS_PG_conn_isBusy
Pg.obj : error LNK2019: unresolved external symbol _PQconsumeInput referenced in
function _XS_PG_conn_consumeInput
Pg.obj : error LNK2019: unresolved external symbol _PQgetline referenced in func
tion _XS_PG_conn_getline
Pg.obj : error LNK2019: unresolved external symbol _PQputline referenced in func
tion _XS_PG_conn_putline
Pg.obj : error LNK2019: unresolved external symbol _PQputnbytes referenced in fu
nction _XS_PG_conn_putnbytes
Pg.obj : error LNK2019: unresolved external symbol _PQendcopy referenced in func
tion _XS_PG_conn_endcopy
Pg.obj : error LNK2019: unresolved external symbol _lo_open referenced in functi
on _XS_PG_conn_lo_open
Pg.obj : error LNK2019: unresolved external symbol _lo_close referenced in funct
ion _XS_PG_conn_lo_close
Pg.obj : error LNK2019: unresolved external symbol _lo_read referenced in functi
on _XS_PG_conn_lo_read
Pg.obj : error LNK2019: unresolved external symbol _lo_write referenced in funct
ion _XS_PG_conn_lo_write
Pg.obj : error LNK2019: unresolved external symbol _lo_lseek referenced in funct
ion _XS_PG_conn_lo_lseek
Pg.obj : error LNK2019: unresolved external symbol _lo_creat referenced in funct
ion _XS_PG_conn_lo_creat
Pg.obj : error LNK2019: unresolved external symbol _lo_tell referenced in functi
on _XS_PG_conn_lo_tell
Pg.obj : error LNK2019: unresolved external symbol _lo_unlink referenced in func
tion _XS_PG_conn_lo_unlink
Pg.obj : error LNK2019: unresolved external symbol _lo_import referenced in func
tion _XS_PG_conn_lo_import
Pg.obj : error LNK2019: unresolved external symbol _lo_export referenced in func
tion _XS_PG_conn_lo_export
Pg.obj : error LNK2019: unresolved external symbol _PQclear referenced in functi
on _XS_PG_results_DESTROY
Pg.obj : error LNK2019: unresolved external symbol _PQresultStatus referenced in
function _XS_PG_results_resultStatus
Pg.obj : error LNK2019: unresolved external symbol _PQresultErrorMessage referen
ced in function _XS_PG_results_resultErrorMessage
Pg.obj : error LNK2019: unresolved external symbol _PQntuples referenced in func
tion _XS_PG_results_ntuples
Pg.obj : error LNK2019: unresolved external symbol _PQnfields referenced in func
tion _XS_PG_results_nfields
Pg.obj : error LNK2019: unresolved external symbol _PQbinaryTuples referenced in
function _XS_PG_results_binaryTuples
Pg.obj : error LNK2019: unresolved external symbol _PQfname referenced in functi
on _XS_PG_results_fname
Pg.obj : error LNK2019: unresolved external symbol _PQfnumber referenced in func
tion _XS_PG_results_fnumber
Pg.obj : error LNK2019: unresolved external symbol _PQftype referenced in functi
on _XS_PG_results_ftype
Pg.obj : error LNK2019: unresolved external symbol _PQfsize referenced in functi
on _XS_PG_results_fsize
Pg.obj : error LNK2019: unresolved external symbol _PQfmod referenced in functio
n _XS_PG_results_fmod
Pg.obj : error LNK2019: unresolved external symbol _PQcmdStatus referenced in fu
nction _XS_PG_results_cmdStatus
Pg.obj : error LNK2019: unresolved external symbol _PQoidStatus referenced in fu
nction _XS_PG_results_oidStatus
Pg.obj : error LNK2019: unresolved external symbol _PQcmdTuples referenced in fu
nction _XS_PG_results_cmdTuples
Pg.obj : error LNK2019: unresolved external symbol _PQgetvalue referenced in fun
ction _XS_PG_results_getvalue
Pg.obj : error LNK2019: unresolved external symbol _PQgetlength referenced in fu
nction _XS_PG_results_getlength
Pg.obj : error LNK2019: unresolved external symbol _PQgetisnull referenced in fu
nction _XS_PG_results_getisnull
Pg.obj : error LNK2019: unresolved external symbol _PQprint referenced in functi
on _XS_PG_results_print
Pg.obj : error LNK2019: unresolved external symbol _PQdisplayTuples referenced i
n function _XS_PG_results_displayTuples
Pg.obj : error LNK2019: unresolved external symbol _PQprintTuples referenced in
function _XS_PG_results_printTuples
blib\arch\auto\Pg\Pg.dll : fatal error LNK1120: 62 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
C:\Perl\modules\pgsql_perl5-1.9.0>
sirusm11
28/03/2007, 13:20
perlci (http://forum.ceviz.net/member.php?u=9648) DBI:Pg modulu icin de ppd dosyasini koyarsaniz cok sevinirim. Shimdiden teshekkurler
Ekteki sıkıştırılmış dosyayı açın içinden iki dosya çıkacak
DBD-Pg.tar.tar ve DBD-Pg.ppd
Bu konumda iken
ppm>install DBD-Pg.ppd
yazıp ENTER bastığınızda modülünüz kurulmuş olacak.
Not: perl'un hangi versiyonunu kullanıyorsunuz. Burdaki 5.8 dir.
sirusm11
29/03/2007, 07:17
cok teshekkur ederim ishe yaridi
Forum Yazılımı : vBulletin v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.