How to download the latest version of gPHPEdit

I have not started offering binary downloads for gPHPEdit through this site yet. However I have started making fixes to bugs and minor modifications to the application. You can download the latest copy of gPHPEdit using git from the gPHPEdit github repository. To download using git, use the following commands

git clone git://github.com/anoopjohn/gphpedit.git

Yes, as simple as that :-). The above command will create a folder named gphpedit with the complete gPHPEdit source from the repository. Now you can build your own copy of gPHPEdit by running the following at the same prompt. Make sure you run these with superuser privileges to not run into permission problems

cd gphpedit
./configure
make
make install

I will be setting up a downloads section and offer the complete source package and binaries for the different GNU/Linux distributions. But that will have to wait for the time being.

Comments

gphpedit can't install

./configure is not working. I get the following error
./configure: No such file or directory

what about autogen.sh? how should it be used?

Instructions on autogen.sh is

Instructions on autogen.sh is provided in the README file.

./autogen.sh --prefix=$(pkg-config --variable=prefix ORBit-2.0) && make

Now, as the root user:

make install

./configure file missing ?

Just downloaded gphpedit using git, and per the INSTALL instructions I should run ./configure.

I don't see this file in any directory. What am I missing ?

Thanks and sorry to bother you,

Jim....

the system is fedora 9.

There is now a new script

There is now a new script autogen.sh. Can you please try running that and then make and make install.

Thanks
Anoop

installing gphpedit

Hi everybody,

i'm running an ubuntu 9.10 and tryed to configure gphpedit but it doesen't really work. This is what i get executing ./configure:

root@valeriopc:/home/valerio/gphpedit# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to disable maintainer-specific portions of Makefiles... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name...
configure: error: in `/home/valerio/gphpedit':
configure: error: C++ compiler cannot create executables

I am actually a really bad linux admin so i do not know how to get it to work now. Has anybody an hint?

Thanks a lot to you all.

Install gcc-c++

You will have to install c++ support. In ubuntu you can go ahead and try installing the build-essential package and that should take care of your requirements

sudo apt-get install build-essential

Thanks
Anoop

building in Linux Mint 8

even after installing the version in the repos you still have the unmet dependencies mensioned above when trying to build. apt-get :
libgtk2.0-dev
libwebkit-dev [this require build-essential and a bunch of other stuff]

even after all this it still does not compile and complains with the same error listed above. what the heck??? I built a custom kernel easier I think your instructions are incomplete at best.

Please give exact error messages

If you can please give the error messages that you are getting I can try to help you in building the package.

Thanks
Anoop

php help?

I like the version in the repositories. As soon as you have tar.gz I will build it on Linux Mint 8... Are you planning on integrating help so that if I press F1 it gives me the php help for that command?

Also, xdebug allows for interactive stepping through a script, variable watching, breakpoints and more. If you could integrate that I would be in heaven, and my Windoze 7 would be gone at work and home! :D

Thank you for your work on this. It is sad that php started on Linux, but now all the quality editors are in windoze.

Help is already integrated

Are you facing problems in getting the help system working. it works fine on Ubuntu 9.04 and it has been working for quite some time. Did you install the php-doc package? That is required for the help to work.

xdebug is an item that has been added to the wishlist. Here is the item in the issuequeue.

https://savannah.nongnu.org/support/index.php?107309

webkit dependency

I got it fixed by doing sudo apt-get -y install libwebkit-dev
Now I am getting compilation errors though.

make...
main_window.c:36:21: error: project.h: No such file or directory
main_window.c: In function ‘main_window_create’:
main_window.c:979: warning: implicit declaration of function ‘folderbrowser_create’
make[2]: *** [main_window.o] Error 1
make[2]: Leaving directory `/home/noor/gphpedit/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/noor/gphpedit'
make: *** [all] Error 2

sudo make install...
main_window.c:36:21: error: project.h: No such file or directory
main_window.c: In function ‘main_window_create’:
main_window.c:979: warning: implicit declaration of function ‘folderbrowser_create’
make[1]: *** [main_window.o] Error 1
make[1]: Leaving directory `/home/noor/gphpedit/src'
make: *** [install-recursive] Error 1

Try with the latest

Can you please try with the latest sources from the git repository

Thanks
Anoop

webkit dependency

It is complaining: No package webkit-1.0 found
During the ./configure process. I don't see any good references to how this is remedied anywhere.

Fail

I've been looking these comments, and I had the same problem as Anonymous. I've installed the three dependences, and my error now is (after the make in ubuntu 9.10 spanish):
g++ -g -O2 -o gphpedit calltip.o classbrowser.o classbrowser_parse.o edit_template.o find_replace.o gphpedit_ipc.o grel2abs.o plugin.o main.o main_window.o main_window_callbacks.o preferences.o preferences_dialog.o syntax_check.o tab.o tab_cxx.o tab_css.o tab_perl.o tab_php.o tab_python.o tab_sql.o tab_util.o templates.o -pthread /usr/lib/libgnomeui-2.so -lSM -lICE /usr/lib/libbonoboui-2.so /usr/lib/libgnomecanvas-2.so /usr/lib/libgnome-2.so /usr/lib/libpopt.so /usr/lib/libbonobo-2.so /usr/lib/libbonobo-activation.so /usr/lib/libORBit-2.so /usr/lib/libart_lgpl_2.so /usr/lib/libgnomevfs-2.so /usr/lib/libgconf-2.so /usr/lib/libgthread-2.0.so -lgtkhtml-2 /usr/lib/libgtk-x11-2.0.so /usr/lib/libxml2.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangocairo-1.0.so /usr/lib/libgio-2.0.so /usr/lib/libcairo.so /usr/lib/libpango-1.0.so /usr/lib/libfreetype.so -lfontconfig /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so gtkscintilla2/libgtkscintilla2.a gtkscintilla2/scintilla/bin/scintilla.a -lrt -lz
make[2]: se sale del directorio `/home/mark/gphpedit/src'
Making all in po
make[2]: se ingresa al directorio `/home/mark/gphpedit/po'
make[2]: No se hace nada para `all'.
make[2]: se sale del directorio `/home/mark/gphpedit/po'
make[2]: se ingresa al directorio `/home/mark/gphpedit'
make[2]: No se hace nada para `all-am'.
make[2]: se sale del directorio `/home/mark/gphpedit'
make[1]: se sale del directorio `/home/mark/gphpedit'
mark@ubuntu:~/gphpedit$ make install
Making install in data
make[1]: se ingresa al directorio `/home/mark/gphpedit/data'
make[2]: se ingresa al directorio `/home/mark/gphpedit/data'
make[2]: No se hace nada para `install-exec-am'.
/bin/bash ../mkinstalldirs /usr/local/share/gphpedit
mkdir -p -- /usr/local/share/gphpedit
mkdir: no se puede crear el directorio «/usr/local/share/gphpedit»: Permiso denegado
make[2]: *** [install-apiDATA] Error 1
make[2]: se sale del directorio `/home/mark/gphpedit/data'
make[1]: *** [install-am] Error 2
make[1]: se sale del directorio `/home/mark/gphpedit/data'
make: *** [install-recursive] Error

Can you help me please??

Try with the latest

Can you please try with the latest sources from the repository.

Thanks
Anoop

Works Fine

Hello i have it installed, is great. Im working in the spanish translation of this application. I will put a post on my blog about it.

Great

Feel free to fork the repo and add your spanish translation into it. Let me know when it is ready to be pulled and I can pull those changes in.

Thanks
Anoop

Error while running ./configure

When "./configure" ended I got the following error about c++ preprocessor. I've installed "cpp", "cpp-4.2" and "cpp-4.3". What should I do? Thanks.

root@notebookflavio:/opt/gphpedit# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
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 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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

Install g++

Can you try installing the latest cpp compiler. In debian or ubuntu try

sudo apt-get install g++

Also it would help to have build-essential installed if you are using ubuntu.

whats wrong about doing it

whats wrong about doing it like ?

sudo apt-get install gphpedit

Worked for me

The git repository version is the latest development snapshot

That works fine. But there has been changes and bug fixes that were made after that. So if you would like to try out the latest then you can download from the git repository.

When I tried to update my

When I tried to update my gPHPEdit to the latest version i got so many problems that I decided to downgrade it back. Anyway thanks for the information.

very useful

thank you anoopjohn!!

Very useful program...
I had install in 2 minutes....
I'll make a post about this on the web site of italian community of Ubuntu.
I'll remeber to give the link to this blog :)

ciao.

Thanks

Thanks for the kind words. Please do spread the word around.

sudo apt-get install

sudo apt-get install gphpedit

Download is working for me,

Download is working for me, maybe check your internet connection?

Selection highlight color

Hi John, thanks for taking this on, I love gphpeditor!

I've built the new version successfully. One bug, on my system (kubuntu 8.10, kde 4.2) the selection highlight color in the editor window is pale yellow and very hard to see on my laptop. Older versions of gphpedit have the same problem. I noticed that the highlight color in the prefrences dialog box is grey and easy to see.

In preferences.c, the hightlight color is set as follows:


preferences.set_sel_back = gnome_config_get_int ("gPHPEdit/default_style/selection=11250603");

in line 99 of tab.c, where the editor window is set up, the highlight color is set as follows:

gtk_scintilla_set_sel_back(GTK_SCINTILLA(editor->scintilla), 1, 134348);

replacing line 99 with this fixes the problem:

gtk_scintilla_set_sel_back(GTK_SCINTILLA(editor->scintilla), 1,
gnome_config_get_int ("gPHPEdit/default_style/selection=11250603"));

I hope this is helpful!

Ken

Thanks for the fix

Hi Ken,

Thanks for the fix, somebody had posted this in the Ubuntu issue queue also. I am down with Chicken pox. I will be updating the code with this fix as soon as I am back on my feet.

Cheers
Anoop

Works fine

Hi All,

It works fine. Thanks folks.
I had to install git-core first, then everything gone smoothly. If anybody face this problem just install git-core using the command given below.
sudo apt-get install git-core

Works perfectly

Whohooooo!
Works perfectly and enjoying the bugfixes :D :D :D

No no I'm talking about the

No no I'm talking about the distro link

I am still confused

Can you please post the URL which you said is incorrect so that I can fix it. I didn't quite understand which distro URL you are talking about.

Thanks
Anoop

Download works ... install fail

hi folks,

The download works well fine but i did that stuff which is described above to compile the sources to an executable ... but that doesn't work at all maybe you should create for debian-bases systems a deb file would be great

What is the exact error you get?

Can you please give a little more detail about the error you get when you try to compile and build

re: log

k1x@workstation:~$ git clone git://github.com/anoopjohn/gphpedit.git
Initialized empty Git repository in /home/k1x/gphpedit/.git/
remote: Counting objects: 404, done.
remote: Compressing objects: 100% (352/352), done.
remote: Total 404 (delta 128), reused 257 (delta 38)
Receiving objects: 100% (404/404), 1.56 MiB | 92 KiB/s, done.
Resolving deltas: 100% (128/128), done.
k1x@workstation:~$ cd gphpedit/
k1x@workstation:~/gphpedit$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
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 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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... 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... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
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 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 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... yes
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++ 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
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for perl... /usr/bin/perl
checking for XML::Parser... ok
checking for iconv... /usr/bin/iconv
checking for msgfmt... /usr/bin/msgfmt
checking for msgmerge... /usr/bin/msgmerge
checking for xgettext... /usr/bin/xgettext
checking for pkg-config... /usr/bin/pkg-config
checking for
gtk+-2.0
libgnomeui-2.0
gnome-vfs-2.0
libgtkhtml-2.0
... Package libgnomeui-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libgnomeui-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libgnomeui-2.0' found Package gnome-vfs-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gnome-vfs-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gnome-vfs-2.0' found Package libgtkhtml-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libgtkhtml-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libgtkhtml-2.0' found
configure: error: Library requirements (
gtk+-2.0
libgnomeui-2.0
gnome-vfs-2.0
libgtkhtml-2.0
) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
k1x@workstation:~/gphpedit$ make
make: *** No targets specified and no makefile found. Stop.
k1x@workstation:~/gphpedit$ make install
make: *** No rule to make target `install'. Stop.
k1x@workstation:~/gphpedit$

Unmet dependencies

The following three dependencies are required - libgnomeui-2.0, gnome-vfs-2.0, libgtkhtml-2.0
You will have to install these first before you can install gphpedit. If your distribution already has gphpedit in its repositories(distros with gphpedit) installing it from there is an easy way to install these dependencies in one go.

Is it really 'Unmet dependencies'??

I tried compiling the source downloaded using git on Ubuntu 9.04 Jaunty, and faced the same problem that 'Anonymous' mentioned above (re: log - Sun, 02/08/2009 - 19:39 — Anonymous):

Here's an extract of the log
---------------------------------------------------
configure: error: Library requirements (
gtk+-2.0
libgnomeui-2.0
gnome-vfs-2.0
libgtkhtml-2.0
) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
---------------------------------------------------

At the same time, I could successfully install it from Jaunty's repositories using Synaptic.
Is it THEN possible for the error to arise from 'missing dependencies'?

Install dev versions

Yes these are unmet dependencies. You have to have the development versions of these libraries. In ubuntu/debian you can install these using

sudo apt-get install libgtk2.0-dev libgnomeui-dev libgnomevfs2-dev libgtkhtml2-dev

link fail

your link does not work ... but i think ubuntu has it in it's repos ... but which version that i do not know

Which link is incorrect?

Which link did you say is not working? If you are talking about the git:// link then you can download the source only using the git command. I will upload the complete tar.gz package soon so that you don't have to go to the github repository for the package.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options