Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1729
  • Last Modified:

Installing Emacs issue on Solaris 10

I can not seem to install xemacs or emacs.
I tried following the directions in this post http://www.experts-exchange.com/Programming/Editors_IDEs/All_Purpose/emacs/Q_22692994.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
0
sobeservices2
Asked:
sobeservices2
  • 29
  • 12
  • 5
2 Solutions
 
woolmilkporcCommented:
As the message says - you don't have a C compliler.

Get the GNU Compiler Collection "gcc" for your Solaris 10 here - http://www.sunfreeware.com/indexintel10.html

wmp
0
 
sobeservices2Author Commented:
How do you install it then I have it on the desktop right now. Confused on the install
0
 
woolmilkporcCommented:
Found this -


Install C in Sun Solaris
1) gunzip gcc-2.95.3-sol8-intel-local.gz
2) cp gcc-2.95.3-sol8-intel-local 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?




0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
sobeservices2Author Commented:
I am getting no space left on device after I run
1) gunzip gcc-2.95.3-sol8-intel-local.gz

and I have 100 GIG's on this machine
0
 
woolmilkporcCommented:
But not in the used filesystem, obviously ...
0
 
sobeservices2Author Commented:
everywhere even on the desktop anywhere where I try to unzip it
I don't understand?
0
 
woolmilkporcCommented:
Well, I don't know your machine, so I don't understand either ...
0
 
sobeservices2Author Commented:
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
0
 
woolmilkporcCommented:
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
0
 
Brian UtterbackPrinciple Software EngineerCommented:
As I noted in the other question, you only have 5GB allocated in / and it is now
full.
0
 
sobeservices2Author Commented:
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
0
 
sobeservices2Author Commented:
I got to this step now and I get this message

pkgadd -d /var/tmp


error no package found in /var/spool/pkg
0
 
Brian UtterbackPrinciple Software EngineerCommented:
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.
0
 
sobeservices2Author Commented:
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

0
 
Brian UtterbackPrinciple Software EngineerCommented:
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.
0
 
sobeservices2Author Commented:
I am all confused!

I will start to post screen shots
0
 
sobeservices2Author Commented:
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
0
 
sobeservices2Author Commented:
0
 
Brian UtterbackPrinciple Software EngineerCommented:
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.
0
 
sobeservices2Author Commented:
There is three folders
Solaris_i386
Solaris_sparc
Source

Which one?
0
 
sobeservices2Author Commented:
0
 
sobeservices2Author Commented:
0
 
sobeservices2Author Commented:
0
 
sobeservices2Author Commented:
0
 
Brian UtterbackPrinciple Software EngineerCommented:
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_companion/Solaris_Software_Companion/Solaris_i386 SFWemacs

There may be dependencies, but then pkgadd should list them.
0
 
sobeservices2Author Commented:
See screen shots of what I got error
Solaris-10-x86-2010-09-02-16-39-.png
0
 
sobeservices2Author Commented:
0
 
sobeservices2Author Commented:
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
0
 
Brian UtterbackPrinciple Software EngineerCommented:
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.
0
 
sobeservices2Author Commented:
ok I got it ..

and installed all packages successful.

Still no emacs

#emacs test1
#emacs
0
 
sobeservices2Author Commented:
Looking at it tomorrow right now still no emacs but the packages looked like they install ok
0
 
sobeservices2Author Commented:
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
0
 
Brian UtterbackPrinciple Software EngineerCommented:
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.
0
 
sobeservices2Author Commented:
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
0
 
Brian UtterbackPrinciple Software EngineerCommented:
You are logged in as root. The root user does not have "." on the path. Try this instead:

./emacs
or
/opt/sfw/bin/emacs
0
 
sobeservices2Author Commented:
just tride

./emacs
and get nothing but a blank curser
0
 
sobeservices2Author Commented:
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
0
 
sobeservices2Author Commented:
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
0
 
Brian UtterbackPrinciple Software EngineerCommented:
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.
0
 
sobeservices2Author Commented:
how do I find out my shell
I do not no much sorry beginner but learning alot
0
 
Brian UtterbackPrinciple Software EngineerCommented:
Type "ps"

It should come back with something like "sh", or "csh" or "ksh" or "tsh" or "bash". Which?
0
 
sobeservices2Author Commented:
I am running sh
0
 
Brian UtterbackPrinciple Software EngineerCommented:
I think that you are logged in as root. Do you plan on always running as root?

Go to your home directory. You need to look for a file called ".profile" and edit it. It is likely to already have a line on it that looks something like this:

PATH=/usr/sbin:/sbin:/usr/bin

Go to the end of the line, and add this string: ":/opt/sfw/bin"

Once you have done that, try logging out and back in and see if that fixes your problem.
0
 
sobeservices2Author Commented:
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.


0
 
Brian UtterbackPrinciple Software EngineerCommented:
You may not have a .profile when you ar elogged in as root. You just need to
create it.

Just run these commands as root:

cd
echo 'PATH=$PATH:/opt/sfw/bin' > .profile
echo 'export PATH' >> .profile
chmod a+x .profile


Then log out and log back in.

0
 
sobeservices2Author Commented:
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.
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

  • 29
  • 12
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now