انجمنهای فارسی اوبونتو
کمک و پشتیبانی => برنامهسازی => نویسنده: crazy tux در 28 آبان 1387، 01:40 قظ
-
به یه k front-end خوب برای wget بنام KWebGet برخودرم ولی انگاری طرف یادش رفته نسخه آخر رو کامپایل کنه و بذاره تو وبش :D خواستم خودم کامپایل کنم کمی ور رفتم ولی دست آخر این گیرم اومد: ؛باید تایین کنید X کجاس؛
گفتم بیام از شما بپرسم که هم چطوری میشه اینو کامپایل کرد:
http://www.kpage.de/download/kwebget-0.8.1.tar.gz
هم اینکه یه توضیح مختصر درباره کامپایل برنامه های سورس باز بدید. من کاملا گیج شدم. تا الان فکر میکردم سورس باز یعنی فقط سورسش رو همراه برنامه میذارن واسه دانلود که ملت ببینن (مثلا سورس یه برنامه نوشته شده با visual basic .NET) ولی اینطور که بوش میاد انگار چیزی فراتر از ایناس...
-
اول pack را از حالت .tar.gz در بیا بعد CD کن به داخل پوشه بعد دستورات زیر را به ترتیب بزن!
امید وارم این کمک کنه
-
سلام.خوبید؟
این آخری یه sudo نمی خواد؟ :
sudo make install
موفق باشید...
-
اول pack را از حالت .tar.gz در بیا بعد CD کن به داخل پوشه بعد دستورات زیر را به ترتیب بزن!
امید وارم این کمک کنه
ارور داد ](*,)
untitled@untitled-desktop:~/Desktop/kwebget$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ supports -fno-exceptions... yes
checking whether g++ supports -fno-check-new... yes
checking whether g++ supports -fexceptions... yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ supports -frepo... 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 for a sed that does not truncate output...
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for dlfcn.h... 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 ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
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 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 how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... 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 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++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) yes
appending configuration tag "GCJ" to libtool
checking if gcj supports -fno-rtti -fno-exceptions... (cached) no
checking for gcj option to produce PIC... -fPIC
checking if gcj PIC flag -fPIC works... no
checking if gcj supports -c -o file.o... no
checking whether the gcj linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
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 main in -lutil... yes
checking for main in -lcompat... no
checking for crypt in -lcrypt... yes
checking for socklen_t... socklen_t
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for inet_ntoa... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for res_init... no
checking for killpg in -lucb... no
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for char *... yes
checking size of char *... 4
checking for char... yes
checking size of char... 1
checking for dlopen in -ldl... (cached) yes
checking for shl_unload in -ldld... no
checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths!
untitled@untitled-desktop:~/Desktop/kwebget$
-
checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths!
باید بسته ی kdebase-dev رو نصب کنید:
sudo apt-get install kdebase-dev
-
بعد از به پایان رسیدن پروسه کامپایل میتونم kdebase-dev رو پاک کنم؟
-
بعد از به پایان رسیدن پروسه کامپایل میتونم kdebase-dev رو پاک کنم؟
مشکلی نداره , میتونی پاک کنی ! ولی شاید در آینده برای کمپایل یک برنامه ی دیگه نیاز بشه ...
-
ممنونم. میشه بسته های kdebase-dev رو به طور local نگهداری کرد که اگر بعدا خواستم دوباره بدون نیاز به دانلود 45 مگابایتی نصبشون کنم؟ چطور؟
-
ممنونم. میشه بسته های kdebase-dev رو به طور local نگهداری کرد که اگر بعدا خواستم دوباره بدون نیاز به دانلود 45 مگابایتی نصبشون کنم؟ چطور؟
تمام بسته های دانلود شده در این مسیر ذخیره میشن :
/var/cache/apt/archives
میتونی به صورت دستی یا با برنامه ی APTonCD (http://wiki.ubuntu-ir.org/Aptoncd) از این بسته ها بکاپ بگیری ...
-
دوباره ارور داد ](*,)
الان qt3-dev-tools ورژن 3:3.3.8Really3.3.7-0ubuntu11.1 رو نصب دارم ولی ارور زیر رو داد. دیگه چیو باید نصب کنم؟
$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ supports -fno-exceptions... yes
checking whether g++ supports -fno-check-new... yes
checking whether g++ supports -fexceptions... yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ supports -frepo... 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 for a sed that does not truncate output...
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for dlfcn.h... 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 ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
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 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 how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... 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 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++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) yes
appending configuration tag "GCJ" to libtool
checking if gcj supports -fno-rtti -fno-exceptions... (cached) no
checking for gcj option to produce PIC... -fPIC
checking if gcj PIC flag -fPIC works... no
checking if gcj supports -c -o file.o... no
checking whether the gcj linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
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 main in -lutil... yes
checking for main in -lcompat... no
checking for crypt in -lcrypt... yes
checking for socklen_t... socklen_t
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for inet_ntoa... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for res_init... no
checking for killpg in -lucb... no
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for char *... yes
checking size of char *... 4
checking for char... yes
checking size of char... 1
checking for dlopen in -ldl... (cached) yes
checking for shl_unload in -ldld... no
checking for X... libraries /usr/lib, headers .
checking for IceConnectionNumber in -lICE... yes
checking for libXext... yes
checking for Xinerama... no
checking for pthread_create in -lpthread... yes
checking for extra includes... no
checking for extra libs... no
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for Qt... configure: error: Qt (>= Qt 3.0.2) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
-
مشکلات معمول که ممکن است در طول فرآیند نصب اتفاق بیافتد
Qt (>= Qt 3.2) (headers and libraries) not found. Please check your installation!
در این حالت، کتابخانه و یا هدرهای QT در سیستم نصب نشده است. چک کنید که بسته qt-devel نصب باشد. دلیل دیگر آن ممکن است این باشد که اسکریپت پیکربندی نمی تواند کتابخانه های مورد نیاز را پیدا کند. چک کنید که بسته Libtool نصب باشد. می توانید در هنگام وارد کردن دستور configure مسیر کتابخانه qt را مستقیما وارد نمایید، به عنوان مثال اگر qt در usr/lib/qt-3.3/ نصب باشد :
$ ./configure --with-qt-dir=/usr/lib/qt-3.3
--------------------------------------------------------------------
In the prefix, you've chosen, are no KDE headers installed. This will fail.
So, check this please and use another prefix!
در این حالت، چک کنید که kdelibs-devel و libtool نصب شده باشد.
-
کامپایل برنامههای اوپنسورس دقیقا مثل برنامههای دیگه هست و عملا برای کامپایلر فرقی نمیکنه که این نرمافزار آزاده یا انحصاری. چی شد که فکر کردین چیزی فراتر از ایناس؟
بعد خطاهایی که موقع کانفیگ میده تا حد زیادی قابل خوندن هستن. کافیه اون چیزی که بهش ایراد میگیره رو ببینین و بستهای رو که با اون نام و با پسوندهایی مثل dev، devel و… یا پیشوندهایی مثل lib هست از مخازن توزیعتون نصصب کنین