Member_2_4942450
asked on
Installing Emacs issue on Solaris 10
I can not seem to install xemacs or emacs.
I tried following the directions in this post https://www.experts-exchange.com/questions/22692994/Installing-emacs.html
I got as far as this
I was able to download the correct version of emacs
Version emacs-23.2
I downloaded the file and extracted it to my desktop
I nagivated to the directory and did
./configure
checking build system type.. i386.pc-solaris2.10
checking host system type... i386.pc-solaris2.10
checking for gcc... no
checking for cc ..no
checking for cl.exe...no
configure: error: no acceptable C compiler found in $PATH
I tried following the directions in this post https://www.experts-exchange.com/questions/22692994/Installing-emacs.html
I got as far as this
I was able to download the correct version of emacs
Version emacs-23.2
I downloaded the file and extracted it to my desktop
I nagivated to the directory and did
./configure
checking build system type.. i386.pc-solaris2.10
checking host system type... i386.pc-solaris2.10
checking for gcc... no
checking for cc ..no
checking for cl.exe...no
configure: error: no acceptable C compiler found in $PATH
ASKER
How do you install it then I have it on the desktop right now. Confused on the install
Found this -
Install C in Sun Solaris
1) gunzip gcc-2.95.3-sol8-intel-loca l.gz
2) cp gcc-2.95.3-sol8-intel-loca l to /var/temp
3) pkgadd -d /var/tmp
4)goto /usr/local/bin
5) mv /usr/ucb/cc /usr/ucb/cc.dist
6) ln -s /usr/local/bin/gcc /usr/ucb/cc
It's for gcc 2.95 and Solaris 8, but there should be no difference to installing gcc-3.4.6-sol10-x86-local. gz
Isn't there a C compiler in /usr/sfw/bin , by the way?
Install C in Sun Solaris
1) gunzip gcc-2.95.3-sol8-intel-loca
2) cp gcc-2.95.3-sol8-intel-loca
3) pkgadd -d /var/tmp
4)goto /usr/local/bin
5) mv /usr/ucb/cc /usr/ucb/cc.dist
6) ln -s /usr/local/bin/gcc /usr/ucb/cc
It's for gcc 2.95 and Solaris 8, but there should be no difference to installing gcc-3.4.6-sol10-x86-local.
Isn't there a C compiler in /usr/sfw/bin , by the way?
ASKER
I am getting no space left on device after I run
1) gunzip gcc-2.95.3-sol8-intel-loca l.gz
and I have 100 GIG's on this machine
1) gunzip gcc-2.95.3-sol8-intel-loca
and I have 100 GIG's on this machine
But not in the used filesystem, obviously ...
ASKER
everywhere even on the desktop anywhere where I try to unzip it
I don't understand?
I don't understand?
Well, I don't know your machine, so I don't understand either ...
ASKER
Its just basic Solaris 10 I installed under VMware. Nothing fancy.
Trying to figure this out its for class and I need to have this running with xemacs.
so frustrating
you want to login and teamviewer.com the computer or get me on a communicator at sobeservices2
Trying to figure this out its for class and I need to have this running with xemacs.
so frustrating
you want to login and teamviewer.com the computer or get me on a communicator at sobeservices2
I'd really advise you to click "Request Attention" to have a moderator add this question to the "Solaris Unix" zone!
There are quite a lot of fine Solaris experts around here, who will surely be able to help you better than I could!
wmp
There are quite a lot of fine Solaris experts around here, who will surely be able to help you better than I could!
wmp
As I noted in the other question, you only have 5GB allocated in / and it is now
full.
full.
ASKER
ok cool what should I allow. How much should I setup when I do the new install. I've probably done about 10 new installs this week trying to figure it all out..
thanks
thanks
ASKER
I got to this step now and I get this message
pkgadd -d /var/tmp
error no package found in /var/spool/pkg
pkgadd -d /var/tmp
error no package found in /var/spool/pkg
What format is the package that you want to install in? If it is unpacked in a open directory format (a directory that has a pkginfo file in it) then the -d flag should be given the path to the enclosing directory. If the format is a single file (usually with an extension of .pkg) then the -d should be given the path to that file itself. It sounds like pkgadd did not find a package in /var/tmp, and so looked in the default of /var/spool/pkg and didn't find it there either.
ASKER
It is a gcc-2.95.3.tar.gz
Its off the solaris companion disk.
In fact I would like to install all the packages if possible but right now I am more worried about xemacs and emacs and gcc
Its off the solaris companion disk.
In fact I would like to install all the packages if possible but right now I am more worried about xemacs and emacs and gcc
I think you might have the source files there, not the binaries. You need the packages to install, not a tar.gz file. Specifically, you want a directory on the disk that is called SUNWgcc and SUNWgccruntime.
ASKER
I am all confused!
I will start to post screen shots
I will start to post screen shots
ASKER
It is a gcc-2.95.3.tar.gz
Its off the solaris companion disk.
In fact I would like to install all the packages if possible but right now I am more worried about xemacs and emacs and gcc
Or message - sobeservices2
yahoo search
Its off the solaris companion disk.
In fact I would like to install all the packages if possible but right now I am more worried about xemacs and emacs and gcc
Or message - sobeservices2
yahoo search
ASKER
Screen shot 1
Solaris-10-x86-2010-09-02-12-22-.png
Solaris-10-x86-2010-09-02-12-22-.png
What you show in the screen shot is the source code, not the pre-built binaries. Go into the the companion disk and look for a direcotry that says "Product". The packages should be in there. There might be sub directories for sparc and x86, but I am not sure.
ASKER
There is three folders
Solaris_i386
Solaris_sparc
Source
Which one?
Solaris_i386
Solaris_sparc
Source
Which one?
ASKER
Screen 1
Solaris-10-x86-2010-09-02-13-07-.png
Solaris-10-x86-2010-09-02-13-07-.png
ASKER
Screen 2
Solaris-10-x86-2010-09-02-13-05-.png
Solaris-10-x86-2010-09-02-13-05-.png
ASKER
Screen 3
Solaris-10-x86-2010-09-02-13-07-.png
Solaris-10-x86-2010-09-02-13-07-.png
ASKER
Screen 4
Solaris-10-x86-2010-09-02-13-05-.png
Solaris-10-x86-2010-09-02-13-05-.png
Stay away from the Source directory. It is only there to comply with the various opensource licenses.
Use which one of the other two that matches your arch. I think you said you
are using vmware, so you want the Solaris_i386 directory.
I forgot that the companion disk packages start with SFW. You want the SFWemacs package. The gcc compiler actually should already be installed, since it is part of the normal user install of Solaris 10. It installs in /usr/sfw/bin/gcc.
To install emacs, you want to run:
pkgadd -d /cdrom/s10_1009_software_c ompanion/S olaris_Sof tware_Comp anion/Sola ris_i386 SFWemacs
There may be dependencies, but then pkgadd should list them.
Use which one of the other two that matches your arch. I think you said you
are using vmware, so you want the Solaris_i386 directory.
I forgot that the companion disk packages start with SFW. You want the SFWemacs package. The gcc compiler actually should already be installed, since it is part of the normal user install of Solaris 10. It installs in /usr/sfw/bin/gcc.
To install emacs, you want to run:
pkgadd -d /cdrom/s10_1009_software_c
There may be dependencies, but then pkgadd should list them.
ASKER
See screen shots of what I got error
Solaris-10-x86-2010-09-02-16-39-.png
Solaris-10-x86-2010-09-02-16-39-.png
ASKER
Screen Shot 2
Solaris-10-x86-2010-09-02-16-41-.png
Solaris-10-x86-2010-09-02-16-41-.png
ASKER
Hold on 5 times the charm I think I typed it out incorrectly
Looks like I'am getting installation stuff running
It says
Installation of <SFWemacs> was successful
now I should be able to just type in
#emacs example1
and emacs should open but its not
I am also attaching file of results
Solaris-10-x86-2010-09-02-16-47-.png
Looks like I'am getting installation stuff running
It says
Installation of <SFWemacs> was successful
now I should be able to just type in
#emacs example1
and emacs should open but its not
I am also attaching file of results
Solaris-10-x86-2010-09-02-16-47-.png
Emacs probably installed in /usr/sfw/bin. Try adding that to your path and doing it again. It is possible it might have installed in /opt, but I doubt it, but you could look there if it isn't in /usr/sfw/bin.
ASKER
ok I got it ..
and installed all packages successful.
Still no emacs
#emacs test1
#emacs
and installed all packages successful.
Still no emacs
#emacs test1
#emacs
ASKER
Looking at it tomorrow right now still no emacs but the packages looked like they install ok
ASKER
I just did
Emacs probably installed in /usr/sfw/bin. Try adding that to your path and doing it again. It is possible it might have installed in /opt, but I doubt it, but you could look there if it isn't in /usr/sfw/bin.
No emacs in /usr/sfw/bin nor /opt
What do I do now.
I feel like i am sorta making progress
Emacs probably installed in /usr/sfw/bin. Try adding that to your path and doing it again. It is possible it might have installed in /opt, but I doubt it, but you could look there if it isn't in /usr/sfw/bin.
No emacs in /usr/sfw/bin nor /opt
What do I do now.
I feel like i am sorta making progress
I downloaded the same companion disk you have, and took a look at the actual SFWemacs package. By default, it appears to install in /opt/sfw/bin. Try
running /opt/sfw/bin/emacs and see if that works.
running /opt/sfw/bin/emacs and see if that works.
ASKER
Ok this is what I did
#pwd
/opt/sfw/bin
#ls
it shows
emacs
emacs-21.3
emacsclient
now when i type in
#emacs temp1
or emacs
Nothing happens
and I get " emacs: not found"
this is strange even when I see it there
See screen shot
Solaris-10-x86-2010-09-03-14-26-.png
#pwd
/opt/sfw/bin
#ls
it shows
emacs
emacs-21.3
emacsclient
now when i type in
#emacs temp1
or emacs
Nothing happens
and I get " emacs: not found"
this is strange even when I see it there
See screen shot
Solaris-10-x86-2010-09-03-14-26-.png
You are logged in as root. The root user does not have "." on the path. Try this instead:
./emacs
or
/opt/sfw/bin/emacs
./emacs
or
/opt/sfw/bin/emacs
ASKER
just tride
./emacs
and get nothing but a blank curser
./emacs
and get nothing but a blank curser
ASKER
hold on I think I got it
now how do I get it to work for everything
all i do in class is just type in
emacs test1
for example
Also where do I find the xemacs now
now how do I get it to work for everything
all i do in class is just type in
emacs test1
for example
Also where do I find the xemacs now
ASKER
I need it to work without having to do
cd /opt/sfw/bin
all the time
No mater what directory I need to be able to just do emacs test1
for example
cd /opt/sfw/bin
all the time
No mater what directory I need to be able to just do emacs test1
for example
On the companion disk is a package called SFWxmacs. That if xemacs. Install that package to get xemacs.
If you just want to be able to type emacs or xemacs, then you will either add /opt/sfw/bin to your path, or make a script or symbolic link in a directory that is already on your path to execute /opt/sfw/bin/emacs and /opt/sfw/bin/xemacs for you. Since they call other programs like emacsclient, it is best to add /opt/sfw/bin to you path. How you do that depends on what shell you are using. If you do not know how to do it, let me know what shell you have.
If you just want to be able to type emacs or xemacs, then you will either add /opt/sfw/bin to your path, or make a script or symbolic link in a directory that is already on your path to execute /opt/sfw/bin/emacs and /opt/sfw/bin/xemacs for you. Since they call other programs like emacsclient, it is best to add /opt/sfw/bin to you path. How you do that depends on what shell you are using. If you do not know how to do it, let me know what shell you have.
ASKER
how do I find out my shell
I do not no much sorry beginner but learning alot
I do not no much sorry beginner but learning alot
Type "ps"
It should come back with something like "sh", or "csh" or "ksh" or "tsh" or "bash". Which?
It should come back with something like "sh", or "csh" or "ksh" or "tsh" or "bash". Which?
ASKER
I am running sh
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I don't see it don't have .profiles can't seem to find it when logged in under root.
pwd
/home/
nothing don't see a file anywhere called .profile
Thanks for your continuing help.
pwd
/home/
nothing don't see a file anywhere called .profile
Thanks for your continuing help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I created the file under /etc/profiles
the profiles had a bunch of stuff in it but I just added the command to the end
Logged out of root and looked in as another user and it worked.
the profiles had a bunch of stuff in it but I just added the command to the end
Logged out of root and looked in as another user and it worked.
Get the GNU Compiler Collection "gcc" for your Solaris 10 here - http://www.sunfreeware.com/indexintel10.html
wmp