Thread: Re: [Cppcms-users] Some build questions
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2009-02-06 15:29:58
|
Hi, Did configuration without sqlite helped? > user@ubuntu:/work/cppcms$ sudo ./configure > [sudo] password for user: First, why do you run this as sudo? You should run only the last step (make install) as root/sudoer. Do you run make as normal user and configure as root? (Actually this is not connected to the problem I think). > > > > Can you provide output of > > > > ldd .libs/libcppcms.so > > > Is this before configure --disable-sqlite or after? > user@ubuntu:/work/cppcms$ ldd .libs/libcppcms.so > linux-gate.so.1 => (0xb7f87000) > libboost_signals.so.1.35.0 => > /usr/lib/libboost_signals.so.1.35.0 (0xb7e9f000) > libboost_iostreams.so.1.35.0 => > /usr/lib/libboost_iostreams.so.1.35.0 > (0xb7e93000) > libboost_regex.so.1.35.0 => > /usr/lib/libboost_regex.so.1.35.0 (0xb7df2000) > libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 > (0xb7dee000) > libcgicc.so.5 => /usr/lib/libcgicc.so.5 (0xb7dc8000) > libgcrypt.so.11 => /lib/libgcrypt.so.11 (0xb7d5f000) > libfcgi++.so.0 => /usr/lib/libfcgi++.so.0 (0xb7d5a000) > libfcgi.so.0 => /usr/lib/libfcgi.so.0 (0xb7d51000) > libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 > (0xb7d37000) > libmm.so.14 => /usr/lib/libmm.so.14 (0xb7d32000) > libcppcmstranstext.so.0 => > /work/cppcms/transtext/.libs/libcppcmstranstext.so.0 > (0xb7d1d000) > libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7c2f000) > libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7c09000) > libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7aab000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7a9b000) > libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb7a8a000) > libz.so.1 => /usr/lib/libz.so.1 (0xb7a74000) > libicudata.so.38 => /usr/lib/libicudata.so.38 > (0xb6f9d000) > libicui18n.so.38 => /usr/lib/libicui18n.so.38 > (0xb6e46000) > libicuuc.so.38 => /usr/lib/libicuuc.so.38 (0xb6d1d000) > /lib/ld-linux.so.2 (0xb7f88000) > libgpg-error.so.0 => /lib/libgpg-error.so.0 > (0xb6d19000) > libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 > (0xb6d00000) > user@ubuntu:/work/cppcms$ > Because I can't see sqlite in dependencies. And the last, what is the version you are compiling 0.0.2 or you are using svn trunk? Thanks, Artyom |
From: Artyom <art...@ya...> - 2009-02-06 16:07:48
|
Ok, At this point I think this should fix the issue: ./configure LIBS="-lrt -lboost_system" --disable-sqlite It seems to me that I should do some tests with livecd of ubunutu as well ;). > I am using svn trunk. When it failed i tried in another Try using trunk. When you using trunk Try to run svn update, maybe you just get some broken version for short time. Go to directory and run svn update It looks like something is broken with configure and I don't know what exactly. I already fixed headers issues you had told me about. BTW: it is not too much about Linux knowledge, it is about compiling everithing with right tools and options. Artyom |
From: Stanimir M. <sta...@zo...> - 2009-02-06 16:37:43
|
On Fri, Feb 6, 2009 at 6:07 PM, Artyom <art...@ya...> wrote: > > Ok, > > At this point I think this should fix the issue: > > ./configure LIBS="-lrt -lboost_system" --disable-sqlite > > > It seems to me that I should do some tests with livecd of ubunutu > as well ;). > Actually me and you are doing these tests right now :). It is probably the slowest test but i hope that this will help cppcms to become more newbie friendly. >> I am using svn trunk. When it failed i tried in another > > Try using trunk. When you using trunk > > Try to run svn update, maybe you just get some broken version > for short time. > > Go to directory and run > > svn update > I did a clean svn checkout and configured as you suggested. The same undefined reference popped as the last time. Here it is: libtool: link: g++ -Wall -I./transtext -g -O2 -o .libs/hello_world.fcgi hello_world_fcgi-hello_world.o hello_world_fcgi-hello_world_view1.o hello_world_fcgi-hello_world_view2.o ./.libs/libcppcms.so -lboost_signals -lboost_iostreams -lboost_regex -ldl /usr/lib/libcgicc.so /lib/libgcrypt.so /usr/lib/libfcgi++.so /usr/lib/libfcgi.so -lnsl /usr/lib/libmm.so /work/cppcms/transtext/.libs/libcppcmstranstext.so transtext/.libs/libcppcmstranstext.so ./.libs/libcppcms.so: undefined reference to `boost::system::get_posix_category()' ./.libs/libcppcms.so: undefined reference to `clock_gettime' ./.libs/libcppcms.so: undefined reference to `boost::system::get_system_category()' collect2: ld returned 1 exit status make[2]: *** [hello_world.fcgi] Error 1 make[2]: Leaving directory `/work/cppcms' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/work/cppcms' make: *** [all] Error 2 > It looks like something is broken with configure and I don't know > what exactly. > > I already fixed headers issues you had told me about. > > BTW: it is not too much about Linux knowledge, it is about > compiling everithing with right tools and options. > > Artyom > > Thanks for your help, i enjoy it and learn more as we go! Stanimir |
From: Artyom <art...@ya...> - 2009-02-06 16:49:51
|
Ok Lets try this: ./configure LIBS="-lrt -lboost_system" --disable-sqlite --prefix=/usr Id suggest to add --prefix=/usr for future when you would install these libraries (because /usr/local/lib ususally not default) Is it still gives you same error? > Actually me and you are doing these tests right now :). It > is probably > the slowest test but i hope that this will help cppcms to > become more > newbie friendly. Actually I'm working on Debian and try to figure out what is broken under Ubuntu. I had managed to build and test cleanly this project under Solaris, FreeBSD, Debian and Cygwin. I'm quite surprised that this does not works for Ubuntu. > libtool: link: g++ -Wall -I./transtext -g -O2 -o > .libs/hello_world.fcgi hello_world_fcgi-hello_world.o > hello_world_fcgi-hello_world_view1.o > hello_world_fcgi-hello_world_view2.o ./.libs/libcppcms.so > -lboost_signals -lboost_iostreams -lboost_regex -ldl > /usr/lib/libcgicc.so /lib/libgcrypt.so > /usr/lib/libfcgi++.so > /usr/lib/libfcgi.so -lnsl /usr/lib/libmm.so > /work/cppcms/transtext/.libs/libcppcmstranstext.so > transtext/.libs/libcppcmstranstext.so > ./.libs/libcppcms.so: undefined reference to > `boost::system::get_posix_category()' > ./.libs/libcppcms.so: undefined reference to > `clock_gettime' > ./.libs/libcppcms.so: undefined reference to > `boost::system::get_system_category()' > collect2: ld returned 1 exit status > make[2]: *** [hello_world.fcgi] Error 1 > make[2]: Leaving directory `/work/cppcms' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/work/cppcms' > make: *** [all] Error 2 > For what I can see there is no -lrt and -lboost_cppcms Artyom |
From: Stanimir M. <sta...@zo...> - 2009-02-06 17:05:54
|
On Fri, Feb 6, 2009 at 6:49 PM, Artyom <art...@ya...> wrote: > > Ok Lets try this: > > ./configure LIBS="-lrt -lboost_system" --disable-sqlite --prefix=/usr > > Id suggest to add --prefix=/usr for future when you would install > these libraries (because /usr/local/lib ususally not default) > > Is it still gives you same error? > Yes, the same error. I checked where is libboost and it is really into /usr/lib/ and not inside /usr/local/lib. However into /usr/local/lib i have only python2.5. I will paste the error again in case i miss something. libtool: link: g++ -Wall -I./transtext -g -O2 -o .libs/hello_world.fcgi hello_world_fcgi-hello_world.o hello_world_fcgi-hello_world_view1.o hello_world_fcgi-hello_world_view2.o ./.libs/libcppcms.so -lboost_signals -lboost_iostreams -lboost_regex -ldl /usr/lib/libcgicc.so /lib/libgcrypt.so /usr/lib/libfcgi++.so /usr/lib/libfcgi.so -lnsl /usr/lib/libmm.so /work/cppcms/transtext/.libs/libcppcmstranstext.so transtext/.libs/libcppcmstranstext.so ./.libs/libcppcms.so: undefined reference to `boost::system::get_posix_category()' ./.libs/libcppcms.so: undefined reference to `clock_gettime' ./.libs/libcppcms.so: undefined reference to `boost::system::get_system_category()' collect2: ld returned 1 exit status > >> Actually me and you are doing these tests right now :). It >> is probably >> the slowest test but i hope that this will help cppcms to >> become more >> newbie friendly. > > Actually I'm working on Debian and try to figure out what is > broken under Ubuntu. I had managed to build and test cleanly this project > under Solaris, FreeBSD, Debian and Cygwin. I'm quite > surprised that this does not works for Ubuntu. > >> libtool: link: g++ -Wall -I./transtext -g -O2 -o >> .libs/hello_world.fcgi hello_world_fcgi-hello_world.o >> hello_world_fcgi-hello_world_view1.o >> hello_world_fcgi-hello_world_view2.o ./.libs/libcppcms.so >> -lboost_signals -lboost_iostreams -lboost_regex -ldl >> /usr/lib/libcgicc.so /lib/libgcrypt.so >> /usr/lib/libfcgi++.so >> /usr/lib/libfcgi.so -lnsl /usr/lib/libmm.so >> /work/cppcms/transtext/.libs/libcppcmstranstext.so >> transtext/.libs/libcppcmstranstext.so >> ./.libs/libcppcms.so: undefined reference to >> `boost::system::get_posix_category()' >> ./.libs/libcppcms.so: undefined reference to >> `clock_gettime' >> ./.libs/libcppcms.so: undefined reference to >> `boost::system::get_system_category()' >> collect2: ld returned 1 exit status >> make[2]: *** [hello_world.fcgi] Error 1 >> make[2]: Leaving directory `/work/cppcms' >> make[1]: *** [all-recursive] Error 1 >> make[1]: Leaving directory `/work/cppcms' >> make: *** [all] Error 2 >> > > For what I can see there is no -lrt and -lboost_cppcms > > > Artyom > > > > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom <art...@ya...> - 2009-02-06 17:18:27
|
Ok I'm downloading livecd and I'll test what happends ASAP. Artyom --- On Fri, 2/6/09, Stanimir Mladenov <sta...@zo...> wrote: > From: Stanimir Mladenov <sta...@zo...> > Subject: Re: [Cppcms-users] Some build questions > To: cpp...@li... > Date: Friday, February 6, 2009, 7:05 PM > On Fri, Feb 6, 2009 at 6:49 PM, Artyom > <art...@ya...> wrote: > > > > Ok Lets try this: > > > > ./configure LIBS="-lrt -lboost_system" > --disable-sqlite --prefix=/usr > > > > Id suggest to add --prefix=/usr for future when you > would install > > these libraries (because /usr/local/lib ususally not > default) > > > > Is it still gives you same error? > > > > Yes, the same error. I checked where is libboost and it is > really into > /usr/lib/ and not inside /usr/local/lib. However into > /usr/local/lib i > have only python2.5. > > I will paste the error again in case i miss something. > > libtool: link: g++ -Wall -I./transtext -g -O2 -o > .libs/hello_world.fcgi hello_world_fcgi-hello_world.o > hello_world_fcgi-hello_world_view1.o > hello_world_fcgi-hello_world_view2.o ./.libs/libcppcms.so > -lboost_signals -lboost_iostreams -lboost_regex -ldl > /usr/lib/libcgicc.so /lib/libgcrypt.so > /usr/lib/libfcgi++.so > /usr/lib/libfcgi.so -lnsl /usr/lib/libmm.so > /work/cppcms/transtext/.libs/libcppcmstranstext.so > transtext/.libs/libcppcmstranstext.so > ./.libs/libcppcms.so: undefined reference to > `boost::system::get_posix_category()' > ./.libs/libcppcms.so: undefined reference to > `clock_gettime' > ./.libs/libcppcms.so: undefined reference to > `boost::system::get_system_category()' > collect2: ld returned 1 exit status > > > > > >> Actually me and you are doing these tests right > now :). It > >> is probably > >> the slowest test but i hope that this will help > cppcms to > >> become more > >> newbie friendly. > > > > Actually I'm working on Debian and try to figure > out what is > > broken under Ubuntu. I had managed to build and test > cleanly this project > > under Solaris, FreeBSD, Debian and Cygwin. I'm > quite > > surprised that this does not works for Ubuntu. > > > >> libtool: link: g++ -Wall -I./transtext -g -O2 -o > >> .libs/hello_world.fcgi > hello_world_fcgi-hello_world.o > >> hello_world_fcgi-hello_world_view1.o > >> hello_world_fcgi-hello_world_view2.o > ./.libs/libcppcms.so > >> -lboost_signals -lboost_iostreams -lboost_regex > -ldl > >> /usr/lib/libcgicc.so /lib/libgcrypt.so > >> /usr/lib/libfcgi++.so > >> /usr/lib/libfcgi.so -lnsl /usr/lib/libmm.so > >> /work/cppcms/transtext/.libs/libcppcmstranstext.so > >> transtext/.libs/libcppcmstranstext.so > >> ./.libs/libcppcms.so: undefined reference to > >> `boost::system::get_posix_category()' > >> ./.libs/libcppcms.so: undefined reference to > >> `clock_gettime' > >> ./.libs/libcppcms.so: undefined reference to > >> `boost::system::get_system_category()' > >> collect2: ld returned 1 exit status > >> make[2]: *** [hello_world.fcgi] Error 1 > >> make[2]: Leaving directory `/work/cppcms' > >> make[1]: *** [all-recursive] Error 1 > >> make[1]: Leaving directory `/work/cppcms' > >> make: *** [all] Error 2 > >> > > > > For what I can see there is no -lrt and -lboost_cppcms > > > > > > Artyom > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > Create and Deploy Rich Internet Apps outside the > browser with Adobe(R)AIR(TM) > > software. With Adobe AIR, Ajax developers can use > existing skills and code to > > build responsive, highly engaging applications that > combine the power of local > > resources and data with the reach of the web. Download > the Adobe AIR SDK and > > Ajax docs to start building applications > today-http://p.sf.net/sfu/adobe-com > > _______________________________________________ > > Cppcms-users mailing list > > Cpp...@li... > > > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser > with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing > skills and code to > build responsive, highly engaging applications that combine > the power of local > resources and data with the reach of the web. Download the > Adobe AIR SDK and > Ajax docs to start building applications > today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Artyom <art...@ya...> - 2009-02-06 17:23:32
|
Meanwhile, this should solve problem ./configure --disable-tcpcache --disable-sqlite --prefix=/usr |
From: Stanimir M. <sta...@zo...> - 2009-02-06 18:18:09
|
On Fri, Feb 6, 2009 at 7:23 PM, Artyom <art...@ya...> wrote: > > Meanwhile, this should solve problem > > ./configure --disable-tcpcache --disable-sqlite --prefix=/usr > > Thank you very much! That helped this time and only one error left. libtool: link: g++ -Wall -I./transtext -g -O2 -o .libs/hello_world.fcgi hello_world_fcgi-hello_world.o hello_world_fcgi-hello_world_view1.o hello_world_fcgi-hello_world_view2.o ./.libs/libcppcms.so -lboost_signals -lboost_iostreams -lboost_regex -ldl /usr/lib/libcgicc.so /lib/libgcrypt.so /usr/lib/libfcgi++.so /usr/lib/libfcgi.so -lnsl /usr/lib/libmm.so /work/cppcms/transtext/.libs/libcppcmstranstext.so transtext/.libs/libcppcmstranstext.so ./.libs/libcppcms.so: undefined reference to `clock_gettime' collect2: ld returned 1 exit status make[2]: *** [hello_world.fcgi] Error 1 make[2]: Leaving directory `/work/cppcms' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/work/cppcms' make: *** [all] Error 2 You should know that the documentation, the Rationale and everything behind cppcms is very well done. This is not my newbie Linux opinion but a more than intermediate programmer opinion :) By the way, in the Rationale - your last paragraph contains a question : "It would not run as native Win32API application or can be build and debugged using Microsoft tools. But, who cares?" My answer is that I care, because I have used to work with visual studio and very Micro$oft tools. But cppcms is one of the reasons to make me cross the line and give a try to Linux. I find it really good until now. Nothing worse then Windows and much better at many places. The problem will rise when i have to convince my colleagues to switch too. If i fail doing that then I better start searching for Visual Studio replacement, which will match for cppcms development well under Cygwin. Regards, Stanimir > > > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom <art...@ya...> - 2009-02-07 12:34:23
|
Ok... Solution: Install missing dependecies: libboost-date-time1.35-dev Compilation of 0.0.2: Fix an issue with headers. run ./configure LIBS=-lrt --prefix=/usr Than compilation would work with no problems Compilation of trunk Install additional missing dependecy libtool Run svn update Then ./autogen.sh ./autogen.sh ./configure --prefix=/usr Then build with make. This should work now. Next time, please tell me that all sqlite3_* symbols are missing. Best, Artyom |
From: Stanimir M. <sta...@zo...> - 2009-02-07 18:26:16
|
Hi, It works like a charm now! Thanks for your effort! I did compile some of the examples also, and now I am going to enjoy writing some more cppcms tryouts until i get familiar and prove some concepts. My next step is to use cppcms to rewrite one small asp.net application (mostly tool) which is really slow at the moment. This will verify my big expectations in cppcms and c++. I will post the results when it is finished. Regards, Stanimir On Sat, Feb 7, 2009 at 2:34 PM, Artyom <art...@ya...> wrote: > > Ok... Solution: > > Install missing dependecies: > > libboost-date-time1.35-dev > > Compilation of 0.0.2: > > Fix an issue with headers. > > run > > ./configure LIBS=-lrt --prefix=/usr > > Than compilation would work with no problems > > Compilation of trunk > > Install additional missing dependecy > > libtool > > Run > svn update > > Then > > ./autogen.sh > ./autogen.sh > ./configure --prefix=/usr > > Then build with make. This should work now. > > Next time, please tell me that all sqlite3_* symbols are missing. > > > Best, > Artyom > > > > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Stanimir M. <sta...@zo...> - 2009-04-28 11:07:51
|
Hi Artyom, I didn't manage to rewrite the small web utility as I promised but now we have some more serious project to do. I want to create a website with cppcms and for now it will be hosted to an ordinary host company with standard plan. As I said already, my experience with Linux is very small, and it is easier for me to ask you what should be available from my hosting company in order to install cppcms and run my web application? Until now i did install Ubuntu with KDevelop for developing with cppcms. Now with the hosting company i will be definitely more restricted and without sudo abilities :) For wikipp you are using sourceforge to be hosted, and I thought that you have some easy steps to follow and install cppcms to a hosting company with restricted rights. Thanks in advance for your answer! Stanimir On Sat, Feb 7, 2009 at 11:10 PM, Artyom <art...@ya...> wrote: > >> It works like a charm now! Thanks for your effort! > > Thanks for the problem reports. They are very important. > >> >> I did compile some of the examples also, and now I am going >> to enjoy >> writing some more cppcms tryouts until i get familiar and >> prove some >> concepts. > > I would be glad to recieve some feedback. > >> My next step is to use cppcms to rewrite one small asp.net >> application >> (mostly tool) which is really slow at the moment. This will >> verify my >> big expectations in cppcms and c++. I will post the results >> when it is >> finished. > > Yes, I would be glad to get a feedback on positive and negative > points, things that should be improved and so on. > > Artyom > > > > > |
From: Artyom <art...@ya...> - 2009-04-28 13:08:46
|
> I didn't manage to rewrite the small web utility as I > promised but now > we have some more serious project to do. I want to create a > website > with cppcms and for now it will be hosted to an ordinary > host company > with standard plan. As I said already, my experience with > Linux is > very small, and it is easier for me to ask you what should > be > available from my hosting company in order to install > cppcms and run > my web application? You need an ability to run COMPILED srcipts via at least CGI interface, when FastCGI/SCGI is strongly recommended. > Now with the hosting company i will be definitely > more > restricted and without sudo abilities :) Most of chances you need to access to shell prompt and ability to upload compiled software, also you should need an ability to configure the web server to start FastCGI applications and run them. You may do simplest check and compile tiny C++ FastCGI application using libfcgi that just prints hello world and try running it on your hosting system. Start from writing "hello world" CppCMS application, uploading and testing by using "ldd hello.fcgi" what libraries are you missing and then compiling them statically. My may check ./configure flags and disable features that are not madatory, like: --disable-forkcache --disable-tcpcache --disable-crypt --disable-sqlite, depending on your needs. Also, you may try to work with CGI API, for example compile the system as "embedded", but it would not have any cache and will not be able to give high performance as expected. > For wikipp you are using sourceforge to be hosted, and I > thought that > you have some easy steps to follow and install cppcms to a > hosting > company with restricted rights. No, CppCMS is not hosted on sourceforge, it is just a static mirror of primary wiki site. So to be on safe side, the best is Virtual Private Server that today are quite cheep. Second point, that you probably need to compile as more libraries as you can statically, if you you would be able not to worry about libraries. Regards, Artyom P.S.: I'd be glad to get some feedback on your progress. > > Thanks in advance for your answer! > Stanimir > > > On Sat, Feb 7, 2009 at 11:10 PM, Artyom <art...@ya...> > wrote: > > > >> It works like a charm now! Thanks for your > effort! > > > > Thanks for the problem reports. They are very > important. > > > >> > >> I did compile some of the examples also, and now I > am going > >> to enjoy > >> writing some more cppcms tryouts until i get > familiar and > >> prove some > >> concepts. > > > > I would be glad to recieve some feedback. > > > >> My next step is to use cppcms to rewrite one small > asp.net > >> application > >> (mostly tool) which is really slow at the moment. > This will > >> verify my > >> big expectations in cppcms and c++. I will post > the results > >> when it is > >> finished. > > > > Yes, I would be glad to get a feedback on positive and > negative > > points, things that should be improved and so on. > > > > Artyom > > > > > > > > > > > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance > & Operations > Conference from O'Reilly Media. Velocity features a full > day of > expert-led, hands-on workshops and two days of sessions > from industry > leaders in dedicated Performance & Operations tracks. > Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Stanimir M. <sta...@zo...> - 2009-04-28 14:00:47
|
Greet advices, thanks a lot! The Virtual Private Server is a good choice if I was only a bit more knowledgeable at Linux, so I will take the easiest way for now with the embedded build of cppcms. Just asked my hosting company where configuring the web server to run fast-cgi application is possible and they responded negatively, even that they have Apache fastcgi-mod installed. Soon after getting more comfortable with Linux I will move to VPS. I will keep you informed of the progress! Greetings, Stanimir On Tue, Apr 28, 2009 at 4:08 PM, Artyom <art...@ya...> wrote: > >> I didn't manage to rewrite the small web utility as I >> promised but now >> we have some more serious project to do. I want to create a >> website >> with cppcms and for now it will be hosted to an ordinary >> host company >> with standard plan. As I said already, my experience with >> Linux is >> very small, and it is easier for me to ask you what should >> be >> available from my hosting company in order to install >> cppcms and run >> my web application? > > You need an ability to run COMPILED srcipts via at least CGI > interface, when FastCGI/SCGI is strongly recommended. > > >> Now with the hosting company i will be definitely >> more >> restricted and without sudo abilities :) > > Most of chances you need to access to shell prompt and ability to > upload compiled software, also you should need an ability to > configure the web server to start FastCGI applications and run them. > > You may do simplest check and compile tiny C++ FastCGI application > using libfcgi that just prints hello world and try running it on your > hosting system. > > Start from writing "hello world" CppCMS application, uploading and testing > by using "ldd hello.fcgi" what libraries are you missing and then compiling > them statically. > > My may check ./configure flags and disable features that are not madatory, > like: --disable-forkcache --disable-tcpcache --disable-crypt --disable-sqlite, depending on your needs. > > Also, you may try to work with CGI API, for example compile the > system as "embedded", but it would not have any cache and will not > be able to give high performance as expected. > >> For wikipp you are using sourceforge to be hosted, and I >> thought that >> you have some easy steps to follow and install cppcms to a >> hosting >> company with restricted rights. > > No, CppCMS is not hosted on sourceforge, it is just a static mirror > of primary wiki site. > > So to be on safe side, the best is Virtual Private Server that today > are quite cheep. > > Second point, that you probably need to compile as more libraries as > you can statically, if you you would be able not to worry about libraries. > > > Regards, > Artyom > > P.S.: I'd be glad to get some feedback on your progress. > >> >> Thanks in advance for your answer! >> Stanimir >> >> >> On Sat, Feb 7, 2009 at 11:10 PM, Artyom <art...@ya...> >> wrote: >> > >> >> It works like a charm now! Thanks for your >> effort! >> > >> > Thanks for the problem reports. They are very >> important. >> > >> >> >> >> I did compile some of the examples also, and now I >> am going >> >> to enjoy >> >> writing some more cppcms tryouts until i get >> familiar and >> >> prove some >> >> concepts. >> > >> > I would be glad to recieve some feedback. >> > >> >> My next step is to use cppcms to rewrite one small >> asp.net >> >> application >> >> (mostly tool) which is really slow at the moment. >> This will >> >> verify my >> >> big expectations in cppcms and c++. I will post >> the results >> >> when it is >> >> finished. >> > >> > Yes, I would be glad to get a feedback on positive and >> negative >> > points, things that should be improved and so on. >> > >> > Artyom >> > >> > >> > >> > >> > >> >> ------------------------------------------------------------------------------ >> Register Now & Save for Velocity, the Web Performance >> & Operations >> Conference from O'Reilly Media. Velocity features a full >> day of >> expert-led, hands-on workshops and two days of sessions >> from industry >> leaders in dedicated Performance & Operations tracks. >> Use code vel09scf >> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > > > > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Stanimir M. <sta...@zo...> - 2009-02-06 15:47:50
|
On Fri, Feb 6, 2009 at 5:29 PM, Artyom <art...@ya...> wrote: > > Hi, > > Did configuration without sqlite helped? > Yes, it helped but not all is good. Here is the next error after running sudo ./configure --disable-sqlite libtool: link: g++ -Wall -I./transtext -g -O2 -o .libs/hello_world.fcgi hello_world_fcgi-hello_world.o hello_world_fcgi-hello_world_view1.o hello_world_fcgi-hello_world_view2.o ./.libs/libcppcms.so -lboost_signals -lboost_iostreams -lboost_regex -ldl /usr/lib/libcgicc.so /lib/libgcrypt.so /usr/lib/libfcgi++.so /usr/lib/libfcgi.so -lnsl /usr/lib/libmm.so /work/cppcms/transtext/.libs/libcppcmstranstext.so transtext/.libs/libcppcmstranstext.so ./.libs/libcppcms.so: undefined reference to `boost::system::get_posix_category()' ./.libs/libcppcms.so: undefined reference to `clock_gettime' ./.libs/libcppcms.so: undefined reference to `boost::system::get_system_category()' collect2: ld returned 1 exit status make[2]: *** [hello_world.fcgi] Error 1 make[2]: Leaving directory `/work/cppcms' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/work/cppcms' make: *** [all] Error 2 > >> user@ubuntu:/work/cppcms$ sudo ./configure >> [sudo] password for user: > > > First, why do you run this as sudo? You should run only > the last step (make install) as root/sudoer. > > Do you run make as normal user and configure as root? > No, i did everything as root (with sudo) because it says permission denied. Like so: user@ubuntu:/work/cppcms$ ./configure --disable-sqlite ./configure: 53: cannot create conf5021.sh: Permission denied ./configure: 53: cannot create conf5021.sh: Permission denied chmod: cannot access `conf5021.sh': No such file or directory ./configure: line 44: conf5021.sh: Permission denied ./configure: line 45: conf5021.sh: Permission denied chmod: cannot access `conf5021.sh': No such file or directory mkdir: cannot create directory `conf5021.dir': Permission denied ./configure: line 499: conf5021.file: Permission denied ./configure: line 1591: config.log: Permission denied ./configure: line 1601: config.log: Permission denied I read some useful tutorials and info to get started with Linux but i am still a big newbie. If I make more trouble then help, then i will sit and learn more before asking again. > (Actually this is not connected to the problem I think). > >> > >> > Can you provide output of >> > >> > ldd .libs/libcppcms.so >> > >> > > Is this before configure --disable-sqlite or after? > This is before --disable-sqlite because i wanted to send you the output before trying it. > >> user@ubuntu:/work/cppcms$ ldd .libs/libcppcms.so >> linux-gate.so.1 => (0xb7f87000) >> libboost_signals.so.1.35.0 => >> /usr/lib/libboost_signals.so.1.35.0 (0xb7e9f000) >> libboost_iostreams.so.1.35.0 => >> /usr/lib/libboost_iostreams.so.1.35.0 >> (0xb7e93000) >> libboost_regex.so.1.35.0 => >> /usr/lib/libboost_regex.so.1.35.0 (0xb7df2000) >> libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 >> (0xb7dee000) >> libcgicc.so.5 => /usr/lib/libcgicc.so.5 (0xb7dc8000) >> libgcrypt.so.11 => /lib/libgcrypt.so.11 (0xb7d5f000) >> libfcgi++.so.0 => /usr/lib/libfcgi++.so.0 (0xb7d5a000) >> libfcgi.so.0 => /usr/lib/libfcgi.so.0 (0xb7d51000) >> libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 >> (0xb7d37000) >> libmm.so.14 => /usr/lib/libmm.so.14 (0xb7d32000) >> libcppcmstranstext.so.0 => >> /work/cppcms/transtext/.libs/libcppcmstranstext.so.0 >> (0xb7d1d000) >> libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7c2f000) >> libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7c09000) >> libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7aab000) >> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7a9b000) >> libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb7a8a000) >> libz.so.1 => /usr/lib/libz.so.1 (0xb7a74000) >> libicudata.so.38 => /usr/lib/libicudata.so.38 >> (0xb6f9d000) >> libicui18n.so.38 => /usr/lib/libicui18n.so.38 >> (0xb6e46000) >> libicuuc.so.38 => /usr/lib/libicuuc.so.38 (0xb6d1d000) >> /lib/ld-linux.so.2 (0xb7f88000) >> libgpg-error.so.0 => /lib/libgpg-error.so.0 >> (0xb6d19000) >> libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 >> (0xb6d00000) >> user@ubuntu:/work/cppcms$ >> > > Because I can't see sqlite in dependencies. > I will definitely read more for Linux. > > And the last, what is the version you are compiling 0.0.2 > or you are using svn trunk? I am using svn trunk. When it failed i tried in another directory with the tar.gz download. It was the same. > > Thanks, > Artyom > > > > > > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |